xades4j.properties
Class CounterSignatureProperty
java.lang.Object
xades4j.properties.SignatureProperty
xades4j.properties.UnsignedSignatureProperty
xades4j.properties.CounterSignatureProperty
- All Implemented Interfaces:
- QualifyingProperty
public final class CounterSignatureProperty
- extends UnsignedSignatureProperty
Represents the CounterSignature unsigned signature property. A XAdES
signature may have more one CounterSignature properties.
This property is added to the signature through SignaturePropertiesProvider.
Limitation: counter signatures must be XAdES signatures.
- Author:
- Luís
| Fields inherited from interface xades4j.properties.QualifyingProperty |
QUALIFYING_PROPS_REF_TAG, QUALIFYING_PROPS_TAG, SIGNED_DATAOBJ_PROPS_TAG, SIGNED_PROPS_TAG, SIGNED_PROPS_TYPE_URI, SIGNED_SIGNATURE_PROPS_TAG, TARGET_ATTR, UNSIGNED_DATAOBJ_PROPS_TAG, UNSIGNED_PROPS_TAG, UNSIGNED_SIGNATURE_PROPS_TAG, XADES_XMLNS, XADESV141_XMLNS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COUNTER_SIGNATURE_TYPE_URI
public static final String COUNTER_SIGNATURE_TYPE_URI
- See Also:
- Constant Field Values
PROP_NAME
public static final String PROP_NAME
- See Also:
- Constant Field Values
CounterSignatureProperty
public CounterSignatureProperty(XadesSigner counterSigSigner)
- Parameters:
counterSigSigner - the signer that will be used to generate the counter signature
- Throws:
NullPointerException - if counterSigSigner is null
CounterSignatureProperty
public CounterSignatureProperty(XAdESVerificationResult verificationResult)
- Parameters:
verificationResult - the result of counter signature verification
getCounterSigSigner
public XadesSigner getCounterSigSigner()
- Gets the signer that is used to generate the counter signature or
null.
- Returns:
- the signer
getVerificationResult
public XAdESVerificationResult getVerificationResult()
- Gets the result of counter signature verification or
null if the property
wasn't verified.
- Returns:
- the verification result
getName
public String getName()
- Description copied from interface:
QualifyingProperty
- Gets the name of the property, as specified in XAdES (the element name).
- Returns:
- the name
Copyright © 2012. All Rights Reserved.