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
Fields Modifier and Type Field Description private org.w3c.dom.ElementcustomTokenReferenceprivate OutboundSecurityTokenkeyWrappingTokenprivate java.lang.Objectprocessorprivate SecurityTokenConstants.TokenTypetokenTypeprivate java.util.List<OutboundSecurityToken>wrappedTokens-
Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
keyTable, tokenUsages
-
-
Constructor Summary
Constructors Constructor Description GenericOutboundSecurityToken(java.lang.String id, SecurityTokenConstants.TokenType tokenType)GenericOutboundSecurityToken(java.lang.String id, SecurityTokenConstants.TokenType tokenType, java.security.Key key)GenericOutboundSecurityToken(java.lang.String id, SecurityTokenConstants.TokenType tokenType, java.security.Key key, java.security.cert.X509Certificate[] x509Certificates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddWrappedToken(OutboundSecurityToken securityToken)org.w3c.dom.ElementgetCustomTokenReference()SecurityTokenConstants.KeyIdentifiergetKeyIdentifier()Returns the KeyIdentifierOutboundSecurityTokengetKeyWrappingToken()Returns the key wrapping tokenjava.lang.ObjectgetProcessor()Returns the processor responsible for this tokenjava.security.KeygetSecretKey(java.lang.String algorithmURI)Returns the secret keySecurityTokenConstants.TokenTypegetTokenType()java.util.List<OutboundSecurityToken>getWrappedTokens()voidsetCustomTokenReference(org.w3c.dom.Element customTokenReference)voidsetKeyWrappingToken(OutboundSecurityToken keyWrappingToken)voidsetProcessor(java.lang.Object processor)voidsetTokenType(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 Detail
-
tokenType
private SecurityTokenConstants.TokenType tokenType
-
processor
private java.lang.Object processor
-
wrappedTokens
private final java.util.List<OutboundSecurityToken> wrappedTokens
-
keyWrappingToken
private OutboundSecurityToken keyWrappingToken
-
customTokenReference
private org.w3c.dom.Element customTokenReference
-
-
Constructor Detail
-
GenericOutboundSecurityToken
public GenericOutboundSecurityToken(java.lang.String id, SecurityTokenConstants.TokenType tokenType, java.security.Key key, java.security.cert.X509Certificate[] x509Certificates)
-
GenericOutboundSecurityToken
public GenericOutboundSecurityToken(java.lang.String id, SecurityTokenConstants.TokenType tokenType, java.security.Key key)
-
GenericOutboundSecurityToken
public GenericOutboundSecurityToken(java.lang.String id, SecurityTokenConstants.TokenType tokenType)
-
-
Method Detail
-
getProcessor
public java.lang.Object getProcessor()
Description copied from interface:OutboundSecurityTokenReturns the processor responsible for this token- Specified by:
getProcessorin interfaceOutboundSecurityToken- Returns:
- the processor responsible for this token
-
setProcessor
public void setProcessor(java.lang.Object processor)
-
getSecretKey
public java.security.Key getSecretKey(java.lang.String algorithmURI) throws XMLSecurityExceptionDescription copied from interface:OutboundSecurityTokenReturns the secret key- Specified by:
getSecretKeyin interfaceOutboundSecurityToken- Returns:
- The key
- Throws:
XMLSecurityException- if the key can't be loaded
-
getKeyWrappingToken
public OutboundSecurityToken getKeyWrappingToken() throws XMLSecurityException
Description copied from interface:SecurityTokenReturns the key wrapping token- Specified by:
getKeyWrappingTokenin interfaceSecurityToken- Returns:
- The wrapping SecurityToken
- Throws:
XMLSecurityException
-
setKeyWrappingToken
public void setKeyWrappingToken(OutboundSecurityToken keyWrappingToken)
-
getWrappedTokens
public java.util.List<OutboundSecurityToken> getWrappedTokens() throws XMLSecurityException
- Specified by:
getWrappedTokensin interfaceSecurityToken- Throws:
XMLSecurityException
-
addWrappedToken
public void addWrappedToken(OutboundSecurityToken securityToken)
- Specified by:
addWrappedTokenin interfaceOutboundSecurityToken
-
setTokenType
public void setTokenType(SecurityTokenConstants.TokenType tokenType)
-
getTokenType
public SecurityTokenConstants.TokenType getTokenType()
- Specified by:
getTokenTypein interfaceSecurityToken
-
getKeyIdentifier
public SecurityTokenConstants.KeyIdentifier getKeyIdentifier()
Description copied from interface:SecurityTokenReturns the KeyIdentifier- Specified by:
getKeyIdentifierin interfaceSecurityToken- Returns:
- the KeyIdentifier
-
getCustomTokenReference
public org.w3c.dom.Element getCustomTokenReference()
- Specified by:
getCustomTokenReferencein interfaceOutboundSecurityToken
-
setCustomTokenReference
public void setCustomTokenReference(org.w3c.dom.Element customTokenReference)
-
-