org.apache.cxf.ws.security.policy.model
Class SupportingToken
java.lang.Object
org.apache.cxf.ws.security.policy.model.AbstractSecurityAssertion
org.apache.cxf.ws.security.policy.model.TokenWrapper
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SupportingToken
public SupportingToken(SPConstants.SupportTokenType type,
SPConstants version,
PolicyBuilder b)
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