public class SubjectInfoAccessExtension extends Extension
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 }
Extension| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
critical, extensionId, extensionValue| Constructor and Description |
|---|
SubjectInfoAccessExtension(java.lang.Boolean critical,
java.lang.Object value)
Create the extension from the passed DER encoded value of the same.
|
SubjectInfoAccessExtension(java.util.List<AccessDescription> accessDescriptions)
Create an SubjectInfoAccessExtension 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 SubjectInfoAccessExtension(java.util.List<AccessDescription> accessDescriptions)
accessDescriptions - the List of AccessDescription,
cannot be null or empty.java.io.IOException - on errorpublic SubjectInfoAccessExtension(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)