public class NameReader extends Object
| Constructor and Description |
|---|
NameReader(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(X500Principal principal)
Converts the given X.500 principal to a list of relative distinguished names that contains the attributes
comprising the DN.
|
public NameReader(X509Certificate cert)
cert - Certificate to read.public RDNSequence readSubject()
public RDNSequence readIssuer()
public static RDNSequence readX500Principal(X500Principal principal)
principal - Principal to convert.Copyright © 2003-2020 Virginia Tech. All Rights Reserved.