Class GenericOutboundSecurityToken
java.lang.Object
org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
org.apache.xml.security.stax.impl.securityToken.GenericOutboundSecurityToken
- All Implemented Interfaces:
OutboundSecurityToken
,SecurityToken
public class GenericOutboundSecurityToken
extends AbstractSecurityToken
implements OutboundSecurityToken
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Element
private OutboundSecurityToken
private Object
private SecurityTokenConstants.TokenType
private final List<OutboundSecurityToken>
Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
keyTable, tokenUsages
-
Constructor Summary
ConstructorsConstructorDescriptionGenericOutboundSecurityToken
(String id, SecurityTokenConstants.TokenType tokenType) GenericOutboundSecurityToken
(String id, SecurityTokenConstants.TokenType tokenType, Key key) GenericOutboundSecurityToken
(String id, SecurityTokenConstants.TokenType tokenType, Key key, X509Certificate[] x509Certificates) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addWrappedToken
(OutboundSecurityToken securityToken) Returns the KeyIdentifierReturns the key wrapping tokenReturns the processor responsible for this tokengetSecretKey
(String algorithmURI) Returns the secret keyvoid
setCustomTokenReference
(Element customTokenReference) void
setKeyWrappingToken
(OutboundSecurityToken keyWrappingToken) void
setProcessor
(Object processor) void
setTokenType
(SecurityTokenConstants.TokenType tokenType) Methods inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
addTokenUsage, getId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, isAsymmetric, setAsymmetric, setPublicKey, setSecretKey, setSha1Identifier, setX509Certificates
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.xml.security.stax.securityToken.SecurityToken
addTokenUsage, getId, getPublicKey, getSecretKey, getSha1Identifier, getTokenUsages, getX509Certificates, isAsymmetric
-
Field Details
-
tokenType
-
processor
-
wrappedTokens
-
keyWrappingToken
-
customTokenReference
-
-
Constructor Details
-
GenericOutboundSecurityToken
public GenericOutboundSecurityToken(String id, SecurityTokenConstants.TokenType tokenType, Key key, X509Certificate[] x509Certificates) -
GenericOutboundSecurityToken
-
GenericOutboundSecurityToken
-
-
Method Details
-
getProcessor
Description copied from interface:OutboundSecurityToken
Returns the processor responsible for this token- Specified by:
getProcessor
in interfaceOutboundSecurityToken
- Returns:
- the processor responsible for this token
-
setProcessor
-
getSecretKey
Description copied from interface:OutboundSecurityToken
Returns the secret key- Specified by:
getSecretKey
in interfaceOutboundSecurityToken
- Returns:
- The key
- Throws:
XMLSecurityException
- if the key can't be loaded
-
getKeyWrappingToken
Description copied from interface:SecurityToken
Returns the key wrapping token- Specified by:
getKeyWrappingToken
in interfaceSecurityToken
- Returns:
- The wrapping SecurityToken
- Throws:
XMLSecurityException
-
setKeyWrappingToken
-
getWrappedTokens
- Specified by:
getWrappedTokens
in interfaceSecurityToken
- Throws:
XMLSecurityException
-
addWrappedToken
- Specified by:
addWrappedToken
in interfaceOutboundSecurityToken
-
setTokenType
-
getTokenType
- Specified by:
getTokenType
in interfaceSecurityToken
-
getKeyIdentifier
Description copied from interface:SecurityToken
Returns the KeyIdentifier- Specified by:
getKeyIdentifier
in interfaceSecurityToken
- Returns:
- the KeyIdentifier
-
getCustomTokenReference
- Specified by:
getCustomTokenReference
in interfaceOutboundSecurityToken
-
setCustomTokenReference
-