xades4j.providers.impl
Class DefaultBasicSignatureOptionsProvider

java.lang.Object
  extended by xades4j.providers.impl.DefaultBasicSignatureOptionsProvider
All Implemented Interfaces:
BasicSignatureOptionsProvider

public class DefaultBasicSignatureOptionsProvider
extends Object
implements BasicSignatureOptionsProvider

The default implementation of BasicSignatureOptionsProvider. The defaults are:

Author:
Luís

Constructor Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBasicSignatureOptionsProvider

public DefaultBasicSignatureOptionsProvider()
Method Detail

includeSigningCertificate

public boolean includeSigningCertificate()
Description copied from interface: BasicSignatureOptionsProvider
Indicates whether the signing certificate should be included in a ds:X509Certificate element within ds:KeyInfo.

Specified by:
includeSigningCertificate in interface BasicSignatureOptionsProvider
Returns:
true if the certificate should be included; false otherwise

includePublicKey

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

Specified by:
includePublicKey in interface BasicSignatureOptionsProvider
Returns:
true if the public key should be included; false otherwise

signSigningCertificate

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

Specified by:
signSigningCertificate in interface BasicSignatureOptionsProvider
Returns:
true if the certificate should be signed; false otherwise


Copyright © 2012. All Rights Reserved.