Class X509AuthenticationToken
- java.lang.Object
-
- fr.gouv.vitam.common.auth.core.authc.X509AuthenticationToken
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.shiro.authc.AuthenticationToken
,org.apache.shiro.authc.HostAuthenticationToken
public class X509AuthenticationToken extends java.lang.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description X509AuthenticationToken(java.security.cert.X509Certificate[] clientCertChain, java.lang.String host)
X509AuthenticationToken(javax.security.auth.x500.X500Principal clientSubjectDN, javax.security.auth.x500.X500Principal clientIssuerDN, java.lang.String clientHexSerialNumber, java.lang.String host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getCredentials()
java.lang.String
getHexSerialNumber()
java.lang.String
getHost()
javax.security.auth.x500.X500Principal
getIssuerDN()
java.lang.Object
getPrincipal()
javax.security.auth.x500.X500Principal
getSubjectDN()
java.security.cert.CertStore
getX509CertChainStore()
java.security.cert.X509Certificate
getX509Certificate()
java.security.cert.CertSelector
getX509CertSelector()
-
-
-
Constructor Detail
-
X509AuthenticationToken
public X509AuthenticationToken(java.security.cert.X509Certificate[] clientCertChain, java.lang.String host)
- Parameters:
clientCertChain
-host
-
-
X509AuthenticationToken
public X509AuthenticationToken(javax.security.auth.x500.X500Principal clientSubjectDN, javax.security.auth.x500.X500Principal clientIssuerDN, java.lang.String clientHexSerialNumber, java.lang.String host)
- Parameters:
clientSubjectDN
-clientIssuerDN
-clientHexSerialNumber
-host
-
-
-
Method Detail
-
getX509Certificate
public java.security.cert.X509Certificate getX509Certificate()
- Returns:
- the X509 certificate
-
getX509CertSelector
public java.security.cert.CertSelector getX509CertSelector()
- Returns:
- the JVM X509 certificate selector
-
getX509CertChainStore
public java.security.cert.CertStore getX509CertChainStore()
- Returns:
- get a Store with the Cert
-
getSubjectDN
public javax.security.auth.x500.X500Principal getSubjectDN()
- Returns:
- the subjectDN
-
getIssuerDN
public javax.security.auth.x500.X500Principal getIssuerDN()
- Returns:
- the Issuer DN
-
getHexSerialNumber
public java.lang.String getHexSerialNumber()
- Returns:
- the Serial Number (in hexadecimal)
-
getPrincipal
public java.lang.Object getPrincipal()
- Specified by:
getPrincipal
in interfaceorg.apache.shiro.authc.AuthenticationToken
-
getCredentials
public java.lang.Object getCredentials()
- Specified by:
getCredentials
in interfaceorg.apache.shiro.authc.AuthenticationToken
-
getHost
public java.lang.String getHost()
- Specified by:
getHost
in interfaceorg.apache.shiro.authc.HostAuthenticationToken
-
-