Top Description Constructors Methods
org.bouncycastle.jce

public Class PrincipalUtil

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.cert.CRLException, .CertificateEncodingException, .X509CRL, .X509Certificate, org.bouncycastle.asn1.ASN1Primitive, org.bouncycastle.asn1.x509.TBSCertList, .TBSCertificateStructure, .X509Name

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static X509Principal
getIssuerX509Principal(X509Certificate cert)

Deprecated as a consequence of X509Principal being deprecated.
return the issuer of the given cert as an X509PrincipalObject.
public static X509Principal
getIssuerX509Principal(X509CRL crl)

Deprecated as a consequence of X509Principal being deprecated.
return the issuer of the given CRL as an X509PrincipalObject.
public static X509Principal
getSubjectX509Principal(X509Certificate cert)

Deprecated as a consequence of X509Principal being deprecated.
return the subject of the given cert as an X509PrincipalObject.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PrincipalUtilback to summary
public PrincipalUtil()

Method Detail

getIssuerX509Principalback to summary
public static X509Principal getIssuerX509Principal(X509Certificate cert) throws CertificateEncodingException

Deprecated

as a consequence of X509Principal being deprecated. See corresponding docs for further information.

return the issuer of the given cert as an X509PrincipalObject.

getIssuerX509Principalback to summary
public static X509Principal getIssuerX509Principal(X509CRL crl) throws CRLException

Deprecated

as a consequence of X509Principal being deprecated. See corresponding docs for further information.

return the issuer of the given CRL as an X509PrincipalObject.

getSubjectX509Principalback to summary
public static X509Principal getSubjectX509Principal(X509Certificate cert) throws CertificateEncodingException

Deprecated

as a consequence of X509Principal being deprecated. See corresponding docs for further information.

return the subject of the given cert as an X509PrincipalObject.