org.apache.ws.secpolicy.model
Class SupportingToken
java.lang.Object
org.apache.ws.secpolicy.model.AbstractSecurityAssertion
org.apache.ws.secpolicy.model.SupportingToken
- All Implemented Interfaces:
- org.apache.neethi.Assertion, org.apache.neethi.PolicyComponent, AlgorithmWrapper, TokenWrapper
public class SupportingToken
- extends AbstractSecurityAssertion
- implements AlgorithmWrapper, TokenWrapper
| Methods inherited from class org.apache.ws.secpolicy.model.AbstractSecurityAssertion |
equal, getVersion, isIgnorable, isNormalized, isOptional, setIgnorable, setNormalized, setOptional, setVersion, writeAttribute, writeEmptyElement, writeStartElement, writeStartElement |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SupportingToken
public SupportingToken(int type,
int 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.ArrayList getTokens()
- Returns:
- Returns the token.
addToken
public void addToken(Token token)
- Parameters:
token - The token to set.
getTokenType
public int getTokenType()
- Returns:
- Returns the type.
setTokenType
public void setTokenType(int type)
- 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
isSignedElementsOptional
public boolean isSignedElementsOptional()
setSignedElementsOptional
public void setSignedElementsOptional(boolean signedElementsOptional)
isEncryptedElementsOptional
public boolean isEncryptedElementsOptional()
setEncryptedElementsOptional
public void setEncryptedElementsOptional(boolean encryptedElementsOptional)
isSignedPartsOptional
public boolean isSignedPartsOptional()
setSignedPartsOptional
public void setSignedPartsOptional(boolean signedPartsOptional)
isEncryptedPartsOptional
public boolean isEncryptedPartsOptional()
setEncryptedPartsOptional
public void setEncryptedPartsOptional(boolean encryptedPartsOptional)
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
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.