Package org.jboss.security.auth.certs
Class SerialNumberIssuerDNMapping
- java.lang.Object
-
- org.jboss.security.auth.certs.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 Summary
Constructors Constructor Description SerialNumberIssuerDNMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
toPrincipal(X509Certificate[] certs)
Create a SimplePrincipal with the name composed from certs[0].getSerialNumber() + " " + certs[0].getIssuerDN()Principal
toPrinicipal(X509Certificate[] certs)
Return the Principal associated with the specified chain of X509 client certificates.
-
-
-
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 interfaceCertificatePrincipal
- 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, returnnull
.- Specified by:
toPrinicipal
in interfaceCertificatePrincipal
- Parameters:
certs
- Array of client certificates, with the first one in the array being the certificate of the client itself.
-
-