public class AuthorityInfoAccessExtension extends Extension
The AIA extension identifies how to access CA information and services for the certificate in which it appears. It enables CAs to issue their certificates pre-configured with the URLs appropriate for contacting services relevant to those certificates. For example, a CA may issue a certificate that identifies the specific OCSP Responder to use when performing on-line validation of that certificate.
This extension is defined in Internet X.509 PKI Certificate and Certificate Revocation List (CRL) Profile. The profile permits the extension to be included in end-entity or CA certificates, and it must be marked as non-critical. Its ASN.1 definition is as follows:
id-pe-authorityInfoAccess OBJECT IDENTIFIER ::= { id-pe 1 }
AuthorityInfoAccessSyntax ::=
SEQUENCE SIZE (1..MAX) OF AccessDescription
AccessDescription ::= SEQUENCE {
accessMethod OBJECT IDENTIFIER,
accessLocation GeneralName }
Extension| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
critical, extensionId, extensionValue| Constructor and Description |
|---|
AuthorityInfoAccessExtension(java.lang.Boolean critical,
java.lang.Object value)
Create the extension from the passed DER encoded value of the same.
|
AuthorityInfoAccessExtension(java.util.List<AccessDescription> accessDescriptions)
Create an AuthorityInfoAccessExtension from a List of
AccessDescription; the criticality is set to false.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the extension to the DerOutputStream.
|
java.util.List<AccessDescription> |
getAccessDescriptions()
Return the list of AccessDescription objects.
|
java.lang.String |
getName()
Return the name of this extension.
|
java.lang.String |
toString()
Return the extension as user readable string.
|
encode, equals, getExtensionId, getExtensionValue, getId, getValue, hashCode, isCritical, newExtensionpublic static final java.lang.String NAME
public AuthorityInfoAccessExtension(java.util.List<AccessDescription> accessDescriptions)
accessDescriptions - the List of AccessDescription,
cannot be null or empty.public AuthorityInfoAccessExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
critical - true if the extension is to be treated as critical.value - Array of DER encoded bytes of the actual value.java.io.IOException - on error.public java.util.List<AccessDescription> getAccessDescriptions()
public java.lang.String getName()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)