Package 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
-
Field Summary
Fields inherited from class org.apache.ws.secpolicy.model.AbstractSecurityAssertion
version
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getName()
int
short
getType()
boolean
boolean
boolean
boolean
boolean
org.apache.neethi.PolicyComponent
void
serialize
(XMLStreamWriter writer) void
setAlgorithmSuite
(AlgorithmSuite algorithmSuite) void
setEncryptedElements
(SignedEncryptedElements encryptedElements) void
setEncryptedElementsOptional
(boolean encryptedElementsOptional) void
setEncryptedParts
(SignedEncryptedParts encryptedParts) void
setEncryptedPartsOptional
(boolean encryptedPartsOptional) void
setSignedElements
(SignedEncryptedElements signedElements) void
setSignedElementsOptional
(boolean signedElementsOptional) void
setSignedParts
(SignedEncryptedParts signedParts) void
setSignedPartsOptional
(boolean signedPartsOptional) void
void
setTokenType
(int type) Methods inherited from class org.apache.ws.secpolicy.model.AbstractSecurityAssertion
equal, getVersion, isIgnorable, isNormalized, isOptional, setIgnorable, setNormalized, setOptional, setVersion, writeAttribute, writeEmptyElement, writeStartElement, writeStartElement
-
Constructor Details
-
SupportingToken
public SupportingToken(int type, int version)
-
-
Method Details
-
getAlgorithmSuite
- Returns:
- Returns the algorithmSuite.
-
setAlgorithmSuite
- Specified by:
setAlgorithmSuite
in interfaceAlgorithmWrapper
- Parameters:
algorithmSuite
- The algorithmSuite to set.
-
getTokens
- Returns:
- Returns the token.
-
addToken
- 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
- Returns:
- Returns the encryptedElements.
-
setEncryptedElements
- Parameters:
encryptedElements
- The encryptedElements to set.
-
getEncryptedParts
- Returns:
- Returns the encryptedParts.
-
setEncryptedParts
- Parameters:
encryptedParts
- The encryptedParts to set.
-
getSignedElements
- Returns:
- Returns the signedElements.
-
setSignedElements
- Parameters:
signedElements
- The signedElements to set.
-
getSignedParts
- Returns:
- Returns the signedParts.
-
setSignedParts
- Parameters:
signedParts
- The signedParts to set.
-
setToken
- Specified by:
setToken
in interfaceTokenWrapper
-
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
- Specified by:
getName
in interfaceorg.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 interfaceorg.apache.neethi.Assertion
- Overrides:
normalize
in classAbstractSecurityAssertion
-
getType
public short getType()- Specified by:
getType
in interfaceorg.apache.neethi.PolicyComponent
- Overrides:
getType
in classAbstractSecurityAssertion
-
serialize
- Specified by:
serialize
in interfaceorg.apache.neethi.Assertion
- Specified by:
serialize
in interfaceorg.apache.neethi.PolicyComponent
- Throws:
XMLStreamException
-