Class 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 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 interface org.apache.shiro.authc.AuthenticationToken
      • getCredentials

        public java.lang.Object getCredentials()
        Specified by:
        getCredentials in interface org.apache.shiro.authc.AuthenticationToken
      • getHost

        public java.lang.String getHost()
        Specified by:
        getHost in interface org.apache.shiro.authc.HostAuthenticationToken