Package org.jboss.security.auth.certs
Class SubjectX500Principal
- java.lang.Object
-
- org.jboss.security.auth.certs.SubjectX500Principal
-
- All Implemented Interfaces:
CertificatePrincipal
public class SubjectX500Principal extends Object implements CertificatePrincipal
A CertificatePrincipal implementation that uses the client cert SubjectX500Principal as the principal.- Version:
- $Revision$
- Author:
- Scott.Stark@jboss.org
-
-
Constructor Summary
Constructors Constructor Description SubjectX500Principal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Principal
toPrincipal(X509Certificate[] certs)
Returns the client cert SubjectX500Principal 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 SubjectX500Principal 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.
-
-