APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

public Class SubjectInfoAccessExtension

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

The Subject Information Access Extension (OID = 1.3.6.1.5.5.7.1.11).

The subject information access extension indicates how to access information and services for the subject of the certificate in which the extension appears. When the subject is a CA, information and services may include certificate validation services and CA policy data. When the subject is an end entity, the information describes the type of services offered and how to access them. In this case, the contents of this extension are defined in the protocol specifications for the supported services. This extension may be included in end entity or CA certificates. Conforming CAs MUST mark this extension as non-critical.

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-subjectInfoAccess OBJECT IDENTIFIER ::= { id-pe 11 }

  SubjectInfoAccessSyntax  ::=
         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
SubjectInfoAccessExtension(List<AccessDescription>
the List of AccessDescription, cannot be null or empty.
accessDescriptions
)

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

public
SubjectInfoAccessExtension(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

SubjectInfoAccessExtensionback to summary
public SubjectInfoAccessExtension(List<AccessDescription> accessDescriptions)

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

Parameters
accessDescriptions:List<AccessDescription>

the List of AccessDescription, cannot be null or empty.

SubjectInfoAccessExtensionback to summary
public SubjectInfoAccessExtension(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.