Class X509AuthenticationInfo
- java.lang.Object
-
- org.apache.shiro.authc.SimpleAuthenticationInfo
-
- fr.gouv.vitam.common.auth.core.authc.X509AuthenticationInfo
-
- All Implemented Interfaces:
java.io.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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description X509AuthenticationInfo(java.lang.Object principal, java.security.cert.X509Certificate clientCertificate, java.util.Set<java.security.cert.X509Certificate> grantedIssuers, java.lang.String realmName)
X509AuthenticationInfo(java.lang.Object principal, javax.security.auth.x500.X500Principal subjectDN, java.lang.String realmName)
X509AuthenticationInfo(java.lang.Object principal, javax.security.auth.x500.X500Principal issuerDN, java.lang.String serialNumber, java.lang.String realmName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.security.cert.TrustAnchor>
getGrantedTrustAnchors()
java.lang.String
getHexSerialNumber()
javax.security.auth.x500.X500Principal
getIssuerDN()
javax.security.auth.x500.X500Principal
getSubjectDN()
java.security.cert.X509Certificate
getX509Certificate()
-
-
-
Constructor Detail
-
X509AuthenticationInfo
public X509AuthenticationInfo(java.lang.Object principal, java.security.cert.X509Certificate clientCertificate, java.util.Set<java.security.cert.X509Certificate> grantedIssuers, java.lang.String realmName)
- Parameters:
principal
-clientCertificate
-grantedIssuers
-realmName
-
-
X509AuthenticationInfo
public X509AuthenticationInfo(java.lang.Object principal, javax.security.auth.x500.X500Principal issuerDN, java.lang.String serialNumber, java.lang.String realmName)
- Parameters:
principal
-issuerDN
-serialNumber
-realmName
-
-
X509AuthenticationInfo
public X509AuthenticationInfo(java.lang.Object principal, javax.security.auth.x500.X500Principal subjectDN, java.lang.String realmName)
- Parameters:
principal
-subjectDN
-realmName
-
-
-
Method Detail
-
getX509Certificate
public java.security.cert.X509Certificate getX509Certificate()
- Returns:
- the clientCertificate
-
getSubjectDN
public javax.security.auth.x500.X500Principal getSubjectDN()
- Returns:
- the subjectDN of the certificate
-
getIssuerDN
public javax.security.auth.x500.X500Principal getIssuerDN()
- Returns:
- the issuerDN of the certificate
-
getHexSerialNumber
public java.lang.String getHexSerialNumber()
- Returns:
- the serialNumber of the certificate
-
getGrantedTrustAnchors
public java.util.Set<java.security.cert.TrustAnchor> getGrantedTrustAnchors()
- Returns:
- the trusted certificates
-
-