org.jboss.security.auth.certs
Class SubjectDNMapping

java.lang.Object
  extended byorg.jboss.security.auth.certs.SubjectDNMapping
All Implemented Interfaces:
CertificatePrincipal (src)

public class SubjectDNMapping
extends java.lang.Object
implements CertificatePrincipal (src)

A CertificatePrincipal implementation that uses the client cert SubjectDN as the principal.


Constructor Summary
SubjectDNMapping()
           
 
Method Summary
 java.security.Principal toPrinicipal(java.security.cert.X509Certificate[] certs)
          Returns the client cert SubjectDN as the principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectDNMapping

public SubjectDNMapping()
Method Detail

toPrinicipal

public java.security.Principal toPrinicipal(java.security.cert.X509Certificate[] certs)
Returns the client cert SubjectDN as the principal.

Specified by:
toPrinicipal in interface CertificatePrincipal (src)
Parameters:
certs - Array of client certificates, with the first one in the array being the certificate of the client itself.