com.pingidentity.sts.clientapi.tokens.wsse
Class X509CertificateToken
java.lang.Object
com.pingidentity.sts.clientapi.tokens.wsse.BinaryToken
com.pingidentity.sts.clientapi.tokens.wsse.X509CertificateToken
- All Implemented Interfaces:
- Token
public class X509CertificateToken
- extends BinaryToken
Implementation of WS-Security x509 Token Profile 1.0
(see http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0.pdf).
Method Summary |
javax.security.auth.x500.X500PrivateCredential |
getCredential()
Retieves the private key of certificate in use. |
java.lang.String |
getSubjectId()
Not implemented since the token only contains encoded data. |
java.lang.String |
getValueTypeUri()
Retrieves the value type URI of the BinarySecurityToken. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
X509CertificateToken
public X509CertificateToken(javax.security.auth.x500.X500PrivateCredential credential)
throws SecurityTokenException
- Throws:
SecurityTokenException
getSubjectId
public java.lang.String getSubjectId()
- Description copied from class:
BinaryToken
- Not implemented since the token only contains encoded data. Deriving classes can override this method
to provide access to the subject from the decoded token data.
- Specified by:
getSubjectId
in interface Token
- Overrides:
getSubjectId
in class BinaryToken
- Returns:
- subject as String
getValueTypeUri
public java.lang.String getValueTypeUri()
- Description copied from class:
BinaryToken
- Retrieves the value type URI of the BinarySecurityToken. This is the URI that describes the custom token type being implemented.
- Overrides:
getValueTypeUri
in class BinaryToken
- Returns:
- value type URI as String
getCredential
public javax.security.auth.x500.X500PrivateCredential getCredential()
- Retieves the private key of certificate in use.
- Returns:
- private key of certificate in use
Copyright © 2006-2009 Ping Identity Corporation. All Rights Reserved.