|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bouncycastle.jce.PrincipalUtil
public class PrincipalUtil
a utility class that will extract X509Principal objects from X.509 certificates.
Use this in preference to trying to recreate a principal from a String, not all DNs are what they should be, so it's best to leave them encoded where they can be.
Constructor Summary | |
---|---|
PrincipalUtil()
|
Method Summary | |
---|---|
static X509Principal |
getIssuerX509Principal(java.security.cert.X509Certificate cert)
return the issuer of the given cert as an X509PrincipalObject. |
static X509Principal |
getIssuerX509Principal(java.security.cert.X509CRL crl)
return the issuer of the given CRL as an X509PrincipalObject. |
static X509Principal |
getSubjectX509Principal(java.security.cert.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 |
---|
public PrincipalUtil()
Method Detail |
---|
public static X509Principal getIssuerX509Principal(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateEncodingException
java.security.cert.CertificateEncodingException
public static X509Principal getSubjectX509Principal(java.security.cert.X509Certificate cert) throws java.security.cert.CertificateEncodingException
java.security.cert.CertificateEncodingException
public static X509Principal getIssuerX509Principal(java.security.cert.X509CRL crl) throws java.security.cert.CRLException
java.security.cert.CRLException
|
Bouncy Castle Cryptography Library 1.37 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |