public class

AuthorityInfoAccessExtension

extends Extension
implements CertAttrSet<T>
java.lang.Object
   ↳ sun.security.x509.Extension
     ↳ sun.security.x509.AuthorityInfoAccessExtension

Class Overview

The Authority Information Access Extension (OID = 1.3.6.1.5.5.7.1.1).

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  }
 

Summary

Constants
String DESCRIPTIONS
String IDENT Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
String NAME Attribute name.
[Expand]
Inherited Fields
From class sun.security.x509.Extension
Public Constructors
AuthorityInfoAccessExtension(List<AccessDescription> accessDescriptions)
Create an AuthorityInfoAccessExtension from a List of AccessDescription; the criticality is set to false.
AuthorityInfoAccessExtension(Boolean critical, Object value)
Create the extension from the passed DER encoded value of the same.
Public Methods
void delete(String name)
Delete the attribute value.
void encode(OutputStream out)
Write the extension to the DerOutputStream.
Object get(String name)
Get the attribute value.
List<AccessDescription> getAccessDescriptions()
Return the list of AccessDescription objects.
Enumeration<String> getElements()
Return an enumeration of names of attributes existing within this attribute.
String getName()
Return the name of this attribute.
void set(String name, Object obj)
Set the attribute value.
String toString()
Return the extension as user readable string.
[Expand]
Inherited Methods
From class sun.security.x509.Extension
From class java.lang.Object
From interface sun.security.x509.CertAttrSet

Constants

public static final String DESCRIPTIONS

Constant Value: "descriptions"

public static final String IDENT

Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.

Constant Value: "x509.info.extensions.AuthorityInfoAccess"

public static final String NAME

Attribute name.

Constant Value: "AuthorityInfoAccess"

Public Constructors

public AuthorityInfoAccessExtension (List<AccessDescription> accessDescriptions)

Create an AuthorityInfoAccessExtension from a List of AccessDescription; the criticality is set to false.

Parameters
accessDescriptions the List of AccessDescription
Throws
IOException on error

public AuthorityInfoAccessExtension (Boolean critical, Object value)

Create the extension from the passed DER encoded value of the same.

Parameters
critical true if the extension is to be treated as critical.
value Array of DER encoded bytes of the actual value.
Throws
IOException on error.

Public Methods

public void delete (String name)

Delete the attribute value.

Parameters
name the name of the attribute to delete.
Throws
IOException

public void encode (OutputStream out)

Write the extension to the DerOutputStream.

Parameters
out the DerOutputStream to write the extension to.
Throws
IOException on encoding errors.

public Object get (String name)

Get the attribute value.

Parameters
name the name of the attribute to return.
Throws
IOException

public List<AccessDescription> getAccessDescriptions ()

Return the list of AccessDescription objects.

public Enumeration<String> getElements ()

Return an enumeration of names of attributes existing within this attribute.

Returns
  • an enumeration of the attribute names.

public String getName ()

Return the name of this attribute.

Returns
  • the name of this CertAttrSet.

public void set (String name, Object obj)

Set the attribute value.

Parameters
name the name of the attribute (e.g. "x509.info.key")
obj the attribute object.
Throws
IOException

public String toString ()

Return the extension as user readable string.

Returns
  • a string representation of the object.