public class AuthorityInfoAccessExtentionField extends AbstractExtensionField<Collection<String>> implements ExtensionField<Collection<String>>
The policy value of this extension is returned as a collection of strings. The AIA field is combination of two attributes: the access method and access location.
The string returned in the collection is a concatenation of the access method and the access location delimited by the : character.
Access methods are enumerated by the AuthorityInfoAccessMethodIdentifier class. The concatenated string uses the string literals "OCSP" and "caIssuers"
as the access method.
If the extension does not exist in the certificate, the policy value returned by this class
evaluates to an empty collection.
Example string: OCSP:http://myocsp.com/OCSP
| Constructor and Description |
|---|
AuthorityInfoAccessExtentionField(boolean required)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ExtensionIdentifier |
getExtentionIdentifier()
Constructor
|
void |
injectReferenceValue(X509Certificate value)
Injects the referenced value into the expressions.
|
getFieldName, isCritical, toStringgetX509FieldTypegetExpressionType, getPolicyExpressionReferenceType, getPolicyValue, isRequired, setRequiredequals, getClass, hashCode, notify, notifyAll, wait, wait, waitisCriticalgetFieldNamegetX509FieldType, isRequired, setRequiredgetPolicyExpressionReferenceTypegetPolicyValuegetExpressionTypepublic AuthorityInfoAccessExtentionField(boolean required)
required - Indicates if the field is required to be present in the certificate to be compliant with the policy.public void injectReferenceValue(X509Certificate value) throws PolicyProcessException
LiteralPolicyExpression.getPolicyValue() method.injectReferenceValue in interface ReferencePolicyExpression<X509Certificate,Collection<String>>value - The reference value.PolicyProcessException - Thrown if the reference value cannot be successfully processed or the relevant accessible attribute cannot be
retrieved from the value. For example, the X509 reference expressions may require an X509 attribute to be present in a certificate. If the required
certificate attribute is not present, the this exception would be thrown.public ExtensionIdentifier getExtentionIdentifier()
getExtentionIdentifier in interface ExtensionField<Collection<String>>required - Indicates if the field is required to be present in the certificate to be compliant with the policy.Copyright © 2010–2020 The Direct Project. All rights reserved.