public class IssuerAttributeField extends AbstractTBSField<Collection<String>>
The policy value of this field is returned as a string containing the value of a specific attribute in the issuer relative distinguished name (RDN).
If the requested attribute does not exist in the issue RDN, the policy value returned by this class
evaluates to an empty string.
| Constructor and Description |
|---|
IssuerAttributeField(boolean required,
RDNAttributeIdentifier rdnAttributeId)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
TBSFieldName |
getFieldName()
Gets the TBS field name of the attribute extracted from the certificate.
|
RDNAttributeIdentifier |
getRDNAttributeFieldId()
Gets the requested RDN attribute id.
|
void |
injectReferenceValue(X509Certificate value)
Injects the referenced value into the expressions.
|
getX509FieldType, toStringgetExpressionType, getPolicyExpressionReferenceType, getPolicyValue, isRequired, setRequiredequals, getClass, hashCode, notify, notifyAll, wait, wait, waitisRequired, setRequiredgetPolicyExpressionReferenceTypegetPolicyValuegetExpressionTypepublic IssuerAttributeField(boolean required,
RDNAttributeIdentifier rdnAttributeId)
required - Indicates if the field is required to be present in the certificate to be compliant with the policy.rdnAttributeId - Id of the attribute to extract from the issuer RDNpublic TBSFieldName getFieldName()
public void injectReferenceValue(X509Certificate value) throws PolicyProcessException
LiteralPolicyExpression.getPolicyValue() method.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 RDNAttributeIdentifier getRDNAttributeFieldId()
Copyright © 2010-2016 The Direct Project. All Rights Reserved.