public class NameReader
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.security.cert.X509Certificate |
certificate
Certificate to read.
|
| Constructor and Description |
|---|
NameReader(java.security.cert.X509Certificate cert)
Creates a new instance to support reading subject and issuer information on the given certificate.
|
| Modifier and Type | Method and Description |
|---|---|
RDNSequence |
readIssuer()
Reads the issuer field from the certificate.
|
RDNSequence |
readSubject()
Reads the subject field from the certificate.
|
static RDNSequence |
readX500Principal(javax.security.auth.x500.X500Principal principal)
Converts the given X.500 principal to a list of relative distinguished names that contains the attributes
comprising the DN.
|
private final java.security.cert.X509Certificate certificate
public NameReader(java.security.cert.X509Certificate cert)
cert - Certificate to read.public RDNSequence readSubject()
public RDNSequence readIssuer()
public static RDNSequence readX500Principal(javax.security.auth.x500.X500Principal principal)
principal - Principal to convert.