Apache CXF API

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.TokenWrapper
          extended by org.apache.cxf.ws.security.policy.model.SupportingToken
All Implemented Interfaces:
AlgorithmWrapper, org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent, org.apache.neethi.PolicyContainingAssertion

public class SupportingToken
extends TokenWrapper
implements AlgorithmWrapper


Field Summary
 
Fields inherited from class org.apache.cxf.ws.security.policy.model.TokenWrapper
builder, token
 
Fields inherited from class org.apache.cxf.ws.security.policy.model.AbstractSecurityAssertion
constants
 
Constructor Summary
SupportingToken(SPConstants.SupportTokenType type, SPConstants version, PolicyBuilder b)
           
 
Method Summary
 void addToken(Token token)
           
 AlgorithmSuite getAlgorithmSuite()
           
 SignedEncryptedElements getEncryptedElements()
           
 SignedEncryptedParts getEncryptedParts()
           
 QName getName()
           
 org.apache.neethi.Policy getPolicy()
           
 QName getRealName()
           
 SignedEncryptedElements getSignedElements()
           
 SignedEncryptedParts getSignedParts()
           
 Token getToken()
           
 List<Token> getTokens()
           
 SPConstants.SupportTokenType getTokenType()
           
 short getType()
           
 boolean isEncryptedToken()
           
 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.TokenWrapper
normalize
 
Methods inherited from class org.apache.cxf.ws.security.policy.model.AbstractSecurityAssertion
equal, getSPConstants, isIgnorable, isNormalized, isOptional, setIgnorable, 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,
                       PolicyBuilder b)
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 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)
Overrides:
setToken in class TokenWrapper

getToken

public Token getToken()
Overrides:
getToken in class TokenWrapper

getRealName

public QName getRealName()

getName

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

isEncryptedToken

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

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

getPolicy

public org.apache.neethi.Policy getPolicy()
Specified by:
getPolicy in interface org.apache.neethi.PolicyContainingAssertion
Overrides:
getPolicy in class TokenWrapper

Apache CXF API

Apache CXF