org.apache.xml.security.stax.impl.securityToken
Class GenericOutboundSecurityToken

java.lang.Object
  extended by org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
      extended by org.apache.xml.security.stax.impl.securityToken.GenericOutboundSecurityToken
All Implemented Interfaces:
OutboundSecurityToken, SecurityToken

public class GenericOutboundSecurityToken
extends AbstractSecurityToken
implements OutboundSecurityToken

Version:
$Revision: $ $Date: $
Author:
$Author: $

Field Summary
 
Fields inherited from class org.apache.xml.security.stax.impl.securityToken.AbstractSecurityToken
keyTable, tokenUsages
 
Constructor Summary
GenericOutboundSecurityToken(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
 void addWrappedToken(OutboundSecurityToken securityToken)
           
 Element getCustomTokenReference()
           
 SecurityTokenConstants.KeyIdentifier getKeyIdentifier()
          Returns the KeyIdentifier
 OutboundSecurityToken getKeyWrappingToken()
          Returns the key wrapping token
 Object getProcessor()
          Returns the processor responsible for this token
 Key getSecretKey(String algorithmURI)
          Returns the secret key
 SecurityTokenConstants.TokenType getTokenType()
           
 List<OutboundSecurityToken> getWrappedTokens()
           
 void 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
 

Constructor Detail

GenericOutboundSecurityToken

public GenericOutboundSecurityToken(String id,
                                    SecurityTokenConstants.TokenType tokenType,
                                    Key key,
                                    X509Certificate[] x509Certificates)

GenericOutboundSecurityToken

public GenericOutboundSecurityToken(String id,
                                    SecurityTokenConstants.TokenType tokenType,
                                    Key key)

GenericOutboundSecurityToken

public GenericOutboundSecurityToken(String id,
                                    SecurityTokenConstants.TokenType tokenType)
Method Detail

getProcessor

public Object getProcessor()
Description copied from interface: OutboundSecurityToken
Returns the processor responsible for this token

Specified by:
getProcessor in interface OutboundSecurityToken
Returns:
the processor responsible for this token

setProcessor

public void setProcessor(Object processor)

getSecretKey

public Key getSecretKey(String algorithmURI)
                 throws XMLSecurityException
Description copied from interface: OutboundSecurityToken
Returns the secret key

Specified by:
getSecretKey in interface OutboundSecurityToken
Returns:
The key
Throws:
XMLSecurityException - if the key can't be loaded

getKeyWrappingToken

public OutboundSecurityToken getKeyWrappingToken()
                                          throws XMLSecurityException
Description copied from interface: SecurityToken
Returns the key wrapping token

Specified by:
getKeyWrappingToken in interface SecurityToken
Returns:
The wrapping SecurityToken
Throws:
XMLSecurityException

setKeyWrappingToken

public void setKeyWrappingToken(OutboundSecurityToken keyWrappingToken)

getWrappedTokens

public List<OutboundSecurityToken> getWrappedTokens()
                                             throws XMLSecurityException
Specified by:
getWrappedTokens in interface SecurityToken
Throws:
XMLSecurityException

addWrappedToken

public void addWrappedToken(OutboundSecurityToken securityToken)
Specified by:
addWrappedToken in interface OutboundSecurityToken

setTokenType

public void setTokenType(SecurityTokenConstants.TokenType tokenType)

getTokenType

public SecurityTokenConstants.TokenType getTokenType()
Specified by:
getTokenType in interface SecurityToken

getKeyIdentifier

public SecurityTokenConstants.KeyIdentifier getKeyIdentifier()
Description copied from interface: SecurityToken
Returns the KeyIdentifier

Specified by:
getKeyIdentifier in interface SecurityToken
Returns:
the KeyIdentifier

getCustomTokenReference

public Element getCustomTokenReference()
Specified by:
getCustomTokenReference in interface OutboundSecurityToken

setCustomTokenReference

public void setCustomTokenReference(Element customTokenReference)


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.