Top Description Fields Constructors Methods
sun.security.x509

public Class AuthorityInfoAccessExtension

extends Extension
Class Inheritance
Imports
java.io.IOException, java.util.*, sun.security.util.DerOutputStream, .DerValue

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  }
See Also
Extension

Field Summary

Modifier and TypeField and Description
private List<AccessDescription>
accessDescriptions

The List of AccessDescription objects.

public static final String
Inherited from sun.security.x509.Extension:
criticalextensionIdextensionValue

Constructor Summary

AccessConstructor and Description
public
AuthorityInfoAccessExtension(List<AccessDescription>
the List of AccessDescription, cannot be null or empty.
accessDescriptions
)

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

public
AuthorityInfoAccessExtension(Boolean
true if the extension is to be treated as critical.
critical
,
Object
Array of DER encoded bytes of the actual value.
value
)

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

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to write the extension to.
out
)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Write the extension to the DerOutputStream.
private void
public List<AccessDescription>
getAccessDescriptions()

Return the list of AccessDescription objects.

public String
getName()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.
public String
toString()

Overrides sun.security.x509.Extension.toString.

Return the extension as user readable string.
Inherited from sun.security.x509.Extension:
encodeequalsgetExtensionIdgetExtensionValuegetIdgetValuehashCodeisCriticalnewExtension

Field Detail

accessDescriptionsback to summary
private List<AccessDescription> accessDescriptions

The List of AccessDescription objects.

NAMEback to summary
public static final String NAME

Constructor Detail

AuthorityInfoAccessExtensionback to summary
public AuthorityInfoAccessExtension(List<AccessDescription> accessDescriptions)

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

Parameters
accessDescriptions:List<AccessDescription>

the List of AccessDescription, cannot be null or empty.

AuthorityInfoAccessExtensionback to summary
public AuthorityInfoAccessExtension(Boolean critical, Object value) throws IOException

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

Parameters
critical:Boolean

true if the extension is to be treated as critical.

value:Object

Array of DER encoded bytes of the actual value.

Exceptions
IOException:
on error.

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Write the extension to the DerOutputStream.

Parameters
out:DerOutputStream

the DerOutputStream to write the extension to.

Annotations
@Override
encodeThisback to summary
private void encodeThis()
getAccessDescriptionsback to summary
public List<AccessDescription> getAccessDescriptions()

Return the list of AccessDescription objects.

getNameback to summary
public String getName()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.

Annotations
@Override
toStringback to summary
public String toString()

Overrides sun.security.x509.Extension.toString.

Return the extension as user readable string.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object