org.gudy.bouncycastle.jce
Class PrincipalUtil

java.lang.Object
  extended by org.gudy.bouncycastle.jce.PrincipalUtil

public class PrincipalUtil
extends Object

a utility class that will extract X509Principal objects from X.509 certificates.


Constructor Summary
PrincipalUtil()
           
 
Method Summary
static X509Principal getIssuerX509Principal(X509Certificate cert)
          return the issuer of the given cert as an X509PrincipalObject.
static X509Principal getIssuerX509Principal(X509CRL crl)
          return the issuer of the given CRL as an X509PrincipalObject.
static X509Principal getSubjectX509Principal(X509Certificate cert)
          return the subject of the given cert as an X509PrincipalObject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalUtil

public PrincipalUtil()
Method Detail

getIssuerX509Principal

public static X509Principal getIssuerX509Principal(X509Certificate cert)
                                            throws CertificateEncodingException
return the issuer of the given cert as an X509PrincipalObject.

Throws:
CertificateEncodingException

getSubjectX509Principal

public static X509Principal getSubjectX509Principal(X509Certificate cert)
                                             throws CertificateEncodingException
return the subject of the given cert as an X509PrincipalObject.

Throws:
CertificateEncodingException

getIssuerX509Principal

public static X509Principal getIssuerX509Principal(X509CRL crl)
                                            throws CRLException
return the issuer of the given CRL as an X509PrincipalObject.

Throws:
CRLException