xades4j.providers
Interface BasicSignatureOptionsProvider

All Known Implementing Classes:
DefaultBasicSignatureOptionsProvider

public interface BasicSignatureOptionsProvider

Provides basic signature options such as whether ds:KeyInfo elements should be included. A default implementation is provided.

Author:
Luís
See Also:
DefaultBasicSignatureOptionsProvider

Method Summary
 boolean includePublicKey()
          Indicates whether a ds:KeyValue element containing the public key's value should be included in ds:KeyInfo.
 boolean includeSigningCertificate()
          Indicates whether the signing certificate should be included in a ds:X509Certificate element within ds:KeyInfo.
 boolean signSigningCertificate()
          Indicates whether the signature should cover the ds:X509Certificate element containing the signing certificate.
 

Method Detail

includeSigningCertificate

boolean includeSigningCertificate()
Indicates whether the signing certificate should be included in a ds:X509Certificate element within ds:KeyInfo.

Returns:
true if the certificate should be included; false otherwise

includePublicKey

boolean includePublicKey()
Indicates whether a ds:KeyValue element containing the public key's value should be included in ds:KeyInfo.

Returns:
true if the public key should be included; false otherwise

signSigningCertificate

boolean signSigningCertificate()
Indicates whether the signature should cover the ds:X509Certificate element containing the signing certificate. This is only considered if includeSigningCertificate() returns true.

Returns:
true if the certificate should be signed; false otherwise


Copyright © 2012. All Rights Reserved.