Class SerialNumberIssuerDNMapping

  • All Implemented Interfaces:
    CertificatePrincipal

    public class SerialNumberIssuerDNMapping
    extends Object
    implements CertificatePrincipal
    A CertificatePrincipal implementation that builds the principal name based on the cert serialNumber and issuerDN
    Version:
    $Revision$
    Author:
    Scott.Stark@jboss.org
    • Constructor Detail

      • SerialNumberIssuerDNMapping

        public SerialNumberIssuerDNMapping()
    • Method Detail

      • toPrincipal

        public Principal toPrincipal​(X509Certificate[] certs)
        Create a SimplePrincipal with the name composed from certs[0].getSerialNumber() + " " + certs[0].getIssuerDN()
        Specified by:
        toPrincipal in interface CertificatePrincipal
        Parameters:
        certs - Array of client certificates, with the first one in the array being the certificate of the client itself.
      • toPrinicipal

        public Principal toPrinicipal​(X509Certificate[] certs)
        Description copied from interface: CertificatePrincipal
        Return the Principal associated with the specified chain of X509 client certificates. If there is none, return null.
        Specified by:
        toPrinicipal in interface CertificatePrincipal
        Parameters:
        certs - Array of client certificates, with the first one in the array being the certificate of the client itself.