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.SupportingToken
- All Implemented Interfaces:
- org.apache.cxf.ws.policy.PolicyAssertion, AlgorithmWrapper, TokenWrapper, org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent
public class SupportingToken
- extends AbstractSecurityAssertion
- implements AlgorithmWrapper, TokenWrapper
| 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)
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