Package eu.europa.esig.dss.signature
Class SignatureRequirementsChecker
java.lang.Object
eu.europa.esig.dss.signature.SignatureRequirementsChecker
This class is used to verify if the signature can be created according to the provided requirements
in a signature parameters instance
-
Constructor Summary
ConstructorDescriptionSignatureRequirementsChecker
(CertificateVerifier certificateVerifier, AbstractSignatureParameters<?> signatureParameters) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertSigningCertificateIsValid
(CertificateToken certificateToken) This method verifies whether the provided certificate token is acceptable for a signature creation against the providedsignatureParameters
void
assertSigningCertificateIsValid
(AdvancedSignature signature) This method verifies a signing certificate of the givensignature
-
Constructor Details
-
SignatureRequirementsChecker
public SignatureRequirementsChecker(CertificateVerifier certificateVerifier, AbstractSignatureParameters<?> signatureParameters) Default constructor- Parameters:
certificateVerifier
-CertificateVerifier
signatureParameters
-AbstractSignatureParameters
-
-
Method Details
-
assertSigningCertificateIsValid
This method verifies whether the provided certificate token is acceptable for a signature creation against the providedsignatureParameters
- Parameters:
certificateToken
-CertificateToken
-
assertSigningCertificateIsValid
This method verifies a signing certificate of the givensignature
- Parameters:
signature
-AdvancedSignature
to verify
-