public interface

BasicSignatureOptionsProvider

xades4j.providers.BasicSignatureOptionsProvider
Known Indirect Subclasses

Class Overview

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

Summary

Public Methods
abstract boolean includePublicKey()
Indicates whether a ds:KeyValue element containing the public key's value should be included in ds:KeyInfo.
abstract boolean includeSigningCertificate()
Indicates whether the signing certificate, the subject name and issuer/serial should be included within ds:KeyInfo.
abstract boolean signSigningCertificate()
Indicates whether the signature should cover the ds:X509Certificate element containing the signing certificate.

Public Methods

public abstract 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

public abstract boolean includeSigningCertificate ()

Indicates whether the signing certificate, the subject name and issuer/serial should be included within ds:KeyInfo.

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

public abstract 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