public final class

BasicSignatureOptions

extends Object
java.lang.Object
   ↳ xades4j.production.BasicSignatureOptions

Class Overview

Configuration of basic signature options such as whether ds:KeyInfo elements should be included.

Summary

Public Constructors
BasicSignatureOptions()
Public Methods
BasicSignatureOptions includeIssuerSerial(boolean includeIssuerSerial)
Configures whether the issuer/serial should be included in ds:KeyInfo.
BasicSignatureOptions includePublicKey(boolean includePublicKey)
Configures whether a ds:KeyValue element containing the public key's value should be included in ds:KeyInfo.
BasicSignatureOptions includeSigningCertificate(SigningCertificateMode includeSigningCertificateMode)
Configures whether the signing certificate / chain should be included in ds:KeyInfo.
BasicSignatureOptions includeSubjectName(boolean includeSubjectName)
Configures whether the subject name should be included in ds:KeyInfo.
BasicSignatureOptions signKeyInfo(boolean signKeyInfo)
Configures whether the signature should cover the ds:KeyInfo element.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BasicSignatureOptions ()

Public Methods

public BasicSignatureOptions includeIssuerSerial (boolean includeIssuerSerial)

Configures whether the issuer/serial should be included in ds:KeyInfo.

Parameters
includeIssuerSerial true if the issuer/serial should be included; false otherwise
Returns
  • the current instance

public BasicSignatureOptions includePublicKey (boolean includePublicKey)

Configures whether a ds:KeyValue element containing the public key's value should be included in ds:KeyInfo.

Parameters
includePublicKey true if the public key should be included; false otherwise
Returns
  • the current instance

public BasicSignatureOptions includeSigningCertificate (SigningCertificateMode includeSigningCertificateMode)

Configures whether the signing certificate / chain should be included in ds:KeyInfo.

Parameters
includeSigningCertificateMode the include mode
Returns
  • the current instance

public BasicSignatureOptions includeSubjectName (boolean includeSubjectName)

Configures whether the subject name should be included in ds:KeyInfo.

Parameters
includeSubjectName true if the subject name should be included; false otherwise
Returns
  • the current instance

public BasicSignatureOptions signKeyInfo (boolean signKeyInfo)

Configures whether the signature should cover the ds:KeyInfo element.

Parameters
signKeyInfo true if the ds:KeyInfo should be signed; false otherwise
Returns
  • the current instance