public class PrincipalUtil extends Object
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 and Description |
---|
PrincipalUtil() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static X509Principal getIssuerX509Principal(X509Certificate cert) throws CertificateEncodingException
CertificateEncodingException
public static X509Principal getSubjectX509Principal(X509Certificate cert) throws CertificateEncodingException
CertificateEncodingException
public static X509Principal getIssuerX509Principal(X509CRL crl) throws CRLException
CRLException
Copyright © 2015. All rights reserved.