public class X509CertificateToken extends Object implements AuthenticationToken
Constructor and Description |
---|
X509CertificateToken(X509Certificate[] x509Certificates)
Creates an X509 based authentication token.
|
Modifier and Type | Method and Description |
---|---|
X509Certificate[] |
getAuthenticatingCertificates()
Returns the certificate chain
|
Object |
getCredentials()
Returns the subject credentials.
|
Object |
getPrincipal()
Returns the subject identity principal.
|
public X509CertificateToken(X509Certificate[] x509Certificates)
x509Certificates
- the certificate chain.public X509Certificate[] getAuthenticatingCertificates()
public Object getPrincipal()
getPrincipal
in interface AuthenticationToken
X500Principal
of the first certificate in the chain.UsernamePasswordToken
public Object getCredentials()
getCredentials
in interface AuthenticationToken
Copyright © 2013-2018–2019 SeedStack. All rights reserved.