xades4j.properties
Class SigningCertificateProperty

java.lang.Object
  extended by xades4j.properties.SignatureProperty
      extended by xades4j.properties.SignedSignatureProperty
          extended by xades4j.properties.SigningCertificateProperty
All Implemented Interfaces:
QualifyingProperty

public final class SigningCertificateProperty
extends SignedSignatureProperty

The SigningCertificate property is designed to prevent the simple substitution of the certificate. This property contains references to certificates and digest values computed on them. The certificate used to verify the signature shall be identified in the sequence. Other certificates may be present, possibily up to the point of trust.

This is a signed property that qualifies the signature. At most one SigningCertificate element may be present in the signature.

In signature production this property canno be supplied directly because it is mandatory. It is enforced by the XadesSigner.

Author:
Luís

Field Summary
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
SigningCertificateProperty(Collection<X509Certificate> signingCertificateChain)
           
 
Method Summary
 String getName()
          Gets the name of the property, as specified in XAdES (the element name).
 Collection<X509Certificate> getsigningCertificateChain()
          Gets the fragment of the certificate chain contained in the property.
 
Methods inherited from class xades4j.properties.SignedSignatureProperty
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

PROP_NAME

public static final String PROP_NAME
See Also:
Constant Field Values
Constructor Detail

SigningCertificateProperty

public SigningCertificateProperty(Collection<X509Certificate> signingCertificateChain)
Method Detail

getsigningCertificateChain

public Collection<X509Certificate> getsigningCertificateChain()
Gets the fragment of the certificate chain contained in the property. This is an ordered collection starting at the signing certificate and following the convention of X.509 CertPaths. It may contain only one the signing certificate.

Returns:
the certificate chain

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.