public class SerialNumberAttributeField extends AbstractTBSField<String>
The policy value of this field is returned as a string containing an hexadecimal representation of the certificate serial number. All alpha based digits are represented with lower case characters. Leading 0s and/or spaced are not included in the serial number.
| Constructor and Description |
|---|
SerialNumberAttributeField()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
TBSFieldName |
getFieldName()
Gets the TBS field name of the attribute extracted from the certificate.
|
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 SerialNumberAttributeField()
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 TBSFieldName getFieldName()
Copyright © 2010-2016 The Direct Project. All Rights Reserved.