com.sun.identity.liberty.ws.security
Class  SecurityTokenManager
java.lang.Object
  |
  +--com.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
 XMLSignatureManagerinstance will be used for signing
 and accessing the data store. | 
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
SecurityTokenManager
public SecurityTokenManager(java.lang.Object credential)
                     throws SecurityTokenException
- Returns the security token manager instance, the default
 XMLSignatureManagerinstance 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.
 
setCertAlias
public void setCertAlias(java.lang.String certAlias)
                  throws SecurityTokenException
- Sets the alias of the certificate used for issuing WSStoken, i.e.WSSX509Token,WSSSAML Token. If thecertAliasis never set, a default
 certificate will be used for issuingWSStokens.
- 
- Parameters:
- certAlias- String alias name for the certificate.
- Throws:
- SecurityTokenException- if certificate for the- certAliascould not be found in key store.
 
getX509CertificateToken
public BinarySecurityToken getX509CertificateToken()
                                            throws SecurityTokenException
- Gets the X509certificate Token.
- 
- Returns:
- X509certificate 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.