Package org.jboss.security.auth.certs
Class SubjectCNMapping
- java.lang.Object
-
- org.jboss.security.auth.certs.SubjectCNMapping
-
- All Implemented Interfaces:
CertificatePrincipal
public class SubjectCNMapping extends Object implements CertificatePrincipal
A CertificatePrincipal implementation that uses the client cert SubjectDN CN='...' element as the principal.- Version:
- $Revision$
- Author:
- Scott.Stark@jboss.org, gautric@redhat.com
-
-
Constructor Summary
Constructors Constructor Description SubjectCNMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
toPrincipal(X509Certificate[] certs)
Returns the client cert common name portion (cn=...) of the SubjectDN as the principal.Principal
toPrinicipal(X509Certificate[] certs)
Return the Principal associated with the specified chain of X509 client certificates.
-
-
-
Method Detail
-
toPrincipal
public Principal toPrincipal(X509Certificate[] certs)
Returns the client cert common name portion (cn=...) of the SubjectDN as the principal.- 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.
-
-