org.jboss.security.auth.certs
Class SerialNumberIssuerDNMapping

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

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

A CertificatePrincipal implementation that builds the principal name based on the cert serialNumber and issuerDN


Constructor Summary
SerialNumberIssuerDNMapping()
           
 
Method Summary
 java.security.Principal toPrinicipal(java.security.cert.X509Certificate[] certs)
          Create a SimplePrincipal with the name composed from certs[0].getSerialNumber() + " " + certs[0].getIssuerDN()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialNumberIssuerDNMapping

public SerialNumberIssuerDNMapping()
Method Detail

toPrinicipal

public java.security.Principal toPrinicipal(java.security.cert.X509Certificate[] certs)
Create a SimplePrincipal with the name composed from certs[0].getSerialNumber() + " " + certs[0].getIssuerDN()

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.