xades4j.properties
Class CounterSignatureProperty

java.lang.Object
  extended by xades4j.properties.SignatureProperty
      extended by xades4j.properties.UnsignedSignatureProperty
          extended by 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

Field Summary
static String COUNTER_SIGNATURE_TYPE_URI
           
static String PROP_NAME
           
 
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
 
Constructor Summary
CounterSignatureProperty(XadesSigner counterSigSigner)
           
CounterSignatureProperty(XAdESVerificationResult verificationResult)
           
 
Method Summary
 XadesSigner getCounterSigSigner()
          Gets the signer that is used to generate the counter signature or null.
 String getName()
          Gets the name of the property, as specified in XAdES (the element name).
 XAdESVerificationResult getVerificationResult()
          Gets the result of counter signature verification or null if the property wasn't verified.
 
Methods inherited from class xades4j.properties.UnsignedSignatureProperty
isSigned
 
Methods inherited from class xades4j.properties.SignatureProperty
isSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.