public final class ExtensionReader extends Object
X509Certificate object. The available properties are
described in section 4.2 of RFC 2459, http://www.faqs.org/rfcs/rfc2459.html.| Constructor and Description |
|---|
ExtensionReader(X509Certificate cert)
Creates a new instance that can read extension fields from the given X.509
certificate.
|
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.ASN1Encodable |
read(ExtensionType extension)
Reads the value of the given certificate extension field.
|
org.bouncycastle.asn1.ASN1Encodable |
read(String extensionOidOrName)
Reads the value of the extension given by OID or name as defined in section
4.2 of RFC 2459.
|
List<org.bouncycastle.asn1.x509.AccessDescription> |
readAuthorityInformationAccess()
Reads the value of the
AuthorityInformationAccess extension
field of the certificate. |
org.bouncycastle.asn1.x509.AuthorityKeyIdentifier |
readAuthorityKeyIdentifier()
Reads the value of the
AuthorityKeyIdentifier extension field
of the certificate. |
org.bouncycastle.asn1.x509.BasicConstraints |
readBasicConstraints()
Reads the value of the
BasicConstraints extension field of the
certificate. |
List<org.bouncycastle.asn1.x509.PolicyInformation> |
readCertificatePolicies()
Reads the value of the
CertificatePolicies extension field of
the certificate. |
List<org.bouncycastle.asn1.x509.DistributionPoint> |
readCRLDistributionPoints()
Reads the value of the
CRLDistributionPoints extension field
of the certificate. |
List<org.bouncycastle.asn1.x509.KeyPurposeId> |
readExtendedKeyUsage()
Reads the value of the
ExtendedKeyUsage extension field of the
certificate. |
org.bouncycastle.asn1.x509.GeneralNames |
readIssuerAlternativeName()
Reads the value of the
IssuerAlternativeName extension field
of the certificate. |
org.bouncycastle.asn1.x509.KeyUsage |
readKeyUsage()
Reads the value of the
KeyUsage extension field of the
certificate. |
org.bouncycastle.asn1.x509.GeneralNames |
readSubjectAlternativeName()
Reads the value of the SubjectAlternativeName extension field of the
certificate.
|
org.bouncycastle.asn1.x509.SubjectKeyIdentifier |
readSubjectKeyIdentifier()
Reads the value of the
SubjectKeyIdentifier extension field of
the certificate. |
public ExtensionReader(X509Certificate cert)
cert - Certificate to read.public org.bouncycastle.asn1.ASN1Encodable read(String extensionOidOrName)
extensionOidOrName - OID or extension name, e.g. 2.5.29.14
orSubjectK eyIdentifier. In the case of
extension name, the name is case-sensitive and
follows the conventions in RFC 2459.public org.bouncycastle.asn1.ASN1Encodable read(ExtensionType extension)
extension - Extension to read from certificate.public org.bouncycastle.asn1.x509.GeneralNames readSubjectAlternativeName()
public org.bouncycastle.asn1.x509.GeneralNames readIssuerAlternativeName()
IssuerAlternativeName extension field
of the certificate.public org.bouncycastle.asn1.x509.BasicConstraints readBasicConstraints()
BasicConstraints extension field of the
certificate.public List<org.bouncycastle.asn1.x509.PolicyInformation> readCertificatePolicies()
CertificatePolicies extension field of
the certificate.public org.bouncycastle.asn1.x509.SubjectKeyIdentifier readSubjectKeyIdentifier()
SubjectKeyIdentifier extension field of
the certificate.public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier readAuthorityKeyIdentifier()
AuthorityKeyIdentifier extension field
of the certificate.public org.bouncycastle.asn1.x509.KeyUsage readKeyUsage()
KeyUsage extension field of the
certificate.public List<org.bouncycastle.asn1.x509.KeyPurposeId> readExtendedKeyUsage()
ExtendedKeyUsage extension field of the
certificate.public List<org.bouncycastle.asn1.x509.DistributionPoint> readCRLDistributionPoints()
CRLDistributionPoints extension field
of the certificate.public List<org.bouncycastle.asn1.x509.AccessDescription> readAuthorityInformationAccess()
AuthorityInformationAccess extension
field of the certificate.Copyright © 2016 JBoss by Red Hat. All rights reserved.