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 |
readX500Name(org.bouncycastle.asn1.x500.X500Name name)
Converts the given X.500 name to a list of relative distinguished names that contains the attributes
comprising the DN.
|
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.public static RDNSequence readX500Name(org.bouncycastle.asn1.x500.X500Name name)
name
- X.500 name.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.