org.apache.cxf.ws.security.policy.model
Class SupportingToken

java.lang.Object
  extended by org.apache.cxf.ws.security.policy.model.AbstractSecurityAssertion
      extended by org.apache.cxf.ws.security.policy.model.SupportingToken
All Implemented Interfaces:
PolicyAssertion, AlgorithmWrapper, TokenWrapper, org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent

public class SupportingToken
extends AbstractSecurityAssertion
implements AlgorithmWrapper, TokenWrapper


Field Summary
 
Fields inherited from class org.apache.cxf.ws.security.policy.model.AbstractSecurityAssertion
constants
 
Constructor Summary
SupportingToken(SPConstants.SupportTokenType type, SPConstants version)
           
 
Method Summary
 void addToken(Token token)
           
 AlgorithmSuite getAlgorithmSuite()
           
 SignedEncryptedElements getEncryptedElements()
           
 SignedEncryptedParts getEncryptedParts()
           
 javax.xml.namespace.QName getName()
           
 SignedEncryptedElements getSignedElements()
           
 SignedEncryptedParts getSignedParts()
           
 java.util.List<Token> getTokens()
           
 SPConstants.SupportTokenType getTokenType()
           
 short getType()
           
 boolean isEncryptedToken()
           
 org.apache.neethi.PolicyComponent normalize()
           
 void serialize(javax.xml.stream.XMLStreamWriter writer)
           
 void setAlgorithmSuite(AlgorithmSuite algorithmSuite)
           
 void setEncryptedElements(SignedEncryptedElements encryptedElements)
           
 void setEncryptedParts(SignedEncryptedParts encryptedParts)
           
 void setSignedElements(SignedEncryptedElements signedElements)
           
 void setSignedParts(SignedEncryptedParts signedParts)
           
 void setToken(Token tok)
           
 void setTokenType(SPConstants.SupportTokenType t)
           
 
Methods inherited from class org.apache.cxf.ws.security.policy.model.AbstractSecurityAssertion
equal, getPolicy, isAsserted, isNormalized, isOptional, setNormalized, setOptional
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SupportingToken

public SupportingToken(SPConstants.SupportTokenType type,
                       SPConstants version)
Method Detail

getAlgorithmSuite

public AlgorithmSuite getAlgorithmSuite()
Returns:
Returns the algorithmSuite.

setAlgorithmSuite

public void setAlgorithmSuite(AlgorithmSuite algorithmSuite)
Specified by:
setAlgorithmSuite in interface AlgorithmWrapper
Parameters:
algorithmSuite - The algorithmSuite to set.

getTokens

public java.util.List<Token> getTokens()
Returns:
Returns the token.

addToken

public void addToken(Token token)
Parameters:
token - The token to set.

getTokenType

public SPConstants.SupportTokenType getTokenType()
Returns:
Returns the type.

setTokenType

public void setTokenType(SPConstants.SupportTokenType t)
Parameters:
type - The type to set.

getEncryptedElements

public SignedEncryptedElements getEncryptedElements()
Returns:
Returns the encryptedElements.

setEncryptedElements

public void setEncryptedElements(SignedEncryptedElements encryptedElements)
Parameters:
encryptedElements - The encryptedElements to set.

getEncryptedParts

public SignedEncryptedParts getEncryptedParts()
Returns:
Returns the encryptedParts.

setEncryptedParts

public void setEncryptedParts(SignedEncryptedParts encryptedParts)
Parameters:
encryptedParts - The encryptedParts to set.

getSignedElements

public SignedEncryptedElements getSignedElements()
Returns:
Returns the signedElements.

setSignedElements

public void setSignedElements(SignedEncryptedElements signedElements)
Parameters:
signedElements - The signedElements to set.

getSignedParts

public SignedEncryptedParts getSignedParts()
Returns:
Returns the signedParts.

setSignedParts

public void setSignedParts(SignedEncryptedParts signedParts)
Parameters:
signedParts - The signedParts to set.

setToken

public void setToken(Token tok)
Specified by:
setToken in interface TokenWrapper

getName

public javax.xml.namespace.QName getName()
Specified by:
getName in interface org.apache.neethi.Assertion

isEncryptedToken

public boolean isEncryptedToken()
Returns:
true if the supporting token should be encrypted

normalize

public org.apache.neethi.PolicyComponent normalize()
Specified by:
normalize in interface org.apache.neethi.Assertion
Overrides:
normalize in class AbstractSecurityAssertion

getType

public short getType()
Specified by:
getType in interface org.apache.neethi.PolicyComponent
Overrides:
getType in class AbstractSecurityAssertion

serialize

public void serialize(javax.xml.stream.XMLStreamWriter writer)
               throws javax.xml.stream.XMLStreamException
Specified by:
serialize in interface org.apache.neethi.Assertion
Specified by:
serialize in interface org.apache.neethi.PolicyComponent
Throws:
javax.xml.stream.XMLStreamException


Apache CXF