Package eu.europa.esig.dss
Class AbstractSignatureParametersBuilder<SP extends AbstractSignatureParameters>
java.lang.Object
eu.europa.esig.dss.AbstractSignatureParametersBuilder<SP>
- Type Parameters:
SP
-AbstractSignatureParameters
- All Implemented Interfaces:
SignatureParametersBuilder<SP>
- Direct Known Subclasses:
TrustedListSignatureParametersBuilder
public abstract class AbstractSignatureParametersBuilder<SP extends AbstractSignatureParameters>
extends Object
implements SignatureParametersBuilder<SP>
An abstract class to build a signature parameters instance
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractSignatureParametersBuilder
(CertificateToken signingCertificate) The default constructorprotected
AbstractSignatureParametersBuilder
(CertificateToken signingCertificate, List<CertificateToken> certificateChain) A constructor with a certificateChain -
Method Summary
Modifier and TypeMethodDescriptionbLevel()
ReturnsBLevelParameters
build()
Creates a Signature Parameters instanceprotected abstract SP
Initialize and return empty signature parameterssetBLevelParams
(BLevelParameters bLevelParams) Sets a BLevelParameters (e.g.
-
Constructor Details
-
AbstractSignatureParametersBuilder
The default constructor- Parameters:
signingCertificate
-CertificateToken
-
AbstractSignatureParametersBuilder
protected AbstractSignatureParametersBuilder(CertificateToken signingCertificate, List<CertificateToken> certificateChain) A constructor with a certificateChain- Parameters:
signingCertificate
-CertificateToken
certificateChain
- a list ofCertificateToken
s
-
-
Method Details
-
initParameters
Initialize and return empty signature parameters- Returns:
SP
signature parameters
-
bLevel
ReturnsBLevelParameters
- Returns:
BLevelParameters
-
setBLevelParams
Sets a BLevelParameters (e.g. a SigningDate)- Parameters:
bLevelParams
-BLevelParameters
to be used- Returns:
- the builder
-
build
Description copied from interface:SignatureParametersBuilder
Creates a Signature Parameters instance- Specified by:
build
in interfaceSignatureParametersBuilder<SP extends AbstractSignatureParameters>
- Returns:
SP
signature parameters
-