Class X509AuthenticationInfo
java.lang.Object
org.apache.shiro.authc.SimpleAuthenticationInfo
fr.gouv.vitam.common.auth.core.authc.X509AuthenticationInfo
- All Implemented Interfaces:
Serializable
,org.apache.shiro.authc.AuthenticationInfo
,org.apache.shiro.authc.MergableAuthenticationInfo
,org.apache.shiro.authc.SaltedAuthenticationInfo
public class X509AuthenticationInfo
extends org.apache.shiro.authc.SimpleAuthenticationInfo
Based on work: Copyright Paul Merlin 2011 (Apache Licence v2.0)
- See Also:
-
Field Summary
Fields inherited from class org.apache.shiro.authc.SimpleAuthenticationInfo
credentials, credentialsSalt, principals
-
Constructor Summary
ConstructorDescriptionX509AuthenticationInfo
(Object principal, X509Certificate clientCertificate, Set<X509Certificate> grantedIssuers, String realmName) X509AuthenticationInfo
(Object principal, X500Principal subjectDN, String realmName) X509AuthenticationInfo
(Object principal, X500Principal issuerDN, String serialNumber, String realmName) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.apache.shiro.authc.SimpleAuthenticationInfo
equals, getCredentials, getCredentialsSalt, getPrincipals, hashCode, merge, setCredentials, setCredentialsSalt, setPrincipals, toString
-
Constructor Details
-
X509AuthenticationInfo
public X509AuthenticationInfo(Object principal, X509Certificate clientCertificate, Set<X509Certificate> grantedIssuers, String realmName) - Parameters:
principal
-clientCertificate
-grantedIssuers
-realmName
-
-
X509AuthenticationInfo
public X509AuthenticationInfo(Object principal, X500Principal issuerDN, String serialNumber, String realmName) - Parameters:
principal
-issuerDN
-serialNumber
-realmName
-
-
X509AuthenticationInfo
- Parameters:
principal
-subjectDN
-realmName
-
-
-
Method Details
-
getX509Certificate
- Returns:
- the clientCertificate
-
getSubjectDN
- Returns:
- the subjectDN of the certificate
-
getIssuerDN
- Returns:
- the issuerDN of the certificate
-
getHexSerialNumber
- Returns:
- the serialNumber of the certificate
-
getGrantedTrustAnchors
- Returns:
- the trusted certificates
-