public class

DefaultBasicSignatureOptionsProvider

extends Object
implements BasicSignatureOptionsProvider
java.lang.Object
   ↳ xades4j.providers.impl.DefaultBasicSignatureOptionsProvider

Class Overview

The default implementation of BasicSignatureOptionsProvider. The defaults are:

  • includeSigningCertificate: true
  • includePublicKey: false
  • signSigningCertificate: false

Summary

Public Constructors
DefaultBasicSignatureOptionsProvider()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface xades4j.providers.BasicSignatureOptionsProvider

Public Constructors

public DefaultBasicSignatureOptionsProvider ()

Public Methods

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

public 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