com.sun.identity.liberty.ws.security
Class SecurityTokenManager

java.lang.Object
  extended bycom.sun.identity.liberty.ws.security.SecurityTokenManager

public final class SecurityTokenManager
extends java.lang.Object

The class SecurityTokenManager is a final class that provides interfaces to manage Web Service Security (WSS) Tokens.


Constructor Summary
SecurityTokenManager(java.lang.Object credential)
          Returns the security token manager instance, the default XMLSignatureManager instance will be used for signing and accessing the data store.
 
Method Summary
 BinarySecurityToken getX509CertificateToken()
          Gets the X509 certificate Token.
 void setCertAlias(java.lang.String certAlias)
          Sets the alias of the certificate used for issuing WSS token, i.e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityTokenManager

public SecurityTokenManager(java.lang.Object credential)
                     throws SecurityTokenException
Returns the security token manager instance, the default XMLSignatureManager instance will be used for signing and accessing the data store.

Parameters:
credential - The credential of the caller used to see if access to this security token manager is allowed.
Throws:
SecurityTokenException - if unable to access the the security token manager.
Method Detail

setCertAlias

public void setCertAlias(java.lang.String certAlias)
                  throws SecurityTokenException
Sets the alias of the certificate used for issuing WSS token, i.e. WSS X509 Token, WSS SAML Token. If the certAlias is never set, a default certificate will be used for issuing WSS tokens.

Parameters:
certAlias - String alias name for the certificate.
Throws:
SecurityTokenException - if certificate for the certAlias could not be found in key store.

getX509CertificateToken

public BinarySecurityToken getX509CertificateToken()
                                            throws SecurityTokenException
Gets the X509 certificate Token.

Returns:
X509 certificate Token.
Throws:
SecurityTokenException - if the binary security token could not be obtained.


Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.