Class X509AuthenticationToken
java.lang.Object
fr.gouv.vitam.common.auth.core.authc.X509AuthenticationToken
- All Implemented Interfaces:
Serializable
,org.apache.shiro.authc.AuthenticationToken
,org.apache.shiro.authc.HostAuthenticationToken
public class X509AuthenticationToken
extends Object
implements org.apache.shiro.authc.AuthenticationToken, org.apache.shiro.authc.HostAuthenticationToken
Based on work: Copyright Paul Merlin 2011 (Apache Licence v2.0)
- See Also:
-
Constructor Summary
ConstructorDescriptionX509AuthenticationToken
(X509Certificate[] clientCertChain, String host) X509AuthenticationToken
(X500Principal clientSubjectDN, X500Principal clientIssuerDN, String clientHexSerialNumber, String host) -
Method Summary
-
Constructor Details
-
X509AuthenticationToken
- Parameters:
clientCertChain
-host
-
-
X509AuthenticationToken
public X509AuthenticationToken(X500Principal clientSubjectDN, X500Principal clientIssuerDN, String clientHexSerialNumber, String host) - Parameters:
clientSubjectDN
-clientIssuerDN
-clientHexSerialNumber
-host
-
-
-
Method Details
-
getX509Certificate
- Returns:
- the X509 certificate
-
getX509CertSelector
- Returns:
- the JVM X509 certificate selector
-
getX509CertChainStore
- Returns:
- get a Store with the Cert
-
getSubjectDN
- Returns:
- the subjectDN
-
getIssuerDN
- Returns:
- the Issuer DN
-
getHexSerialNumber
- Returns:
- the Serial Number (in hexadecimal)
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.apache.shiro.authc.AuthenticationToken
-
getCredentials
- Specified by:
getCredentials
in interfaceorg.apache.shiro.authc.AuthenticationToken
-
getHost
- Specified by:
getHost
in interfaceorg.apache.shiro.authc.HostAuthenticationToken
-