Package eu.europa.esig.dss.model
Interface SerializableSignatureParameters
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
SerializableCounterSignatureParameters
- All Known Implementing Classes:
AbstractSerializableSignatureParameters
,AbstractSignatureParameters
,ASiCWithCAdESSignatureParameters
,ASiCWithXAdESSignatureParameters
,CAdESCounterSignatureParameters
,CAdESSignatureParameters
,JAdESCounterSignatureParameters
,JAdESSignatureParameters
,PAdESSignatureParameters
,XAdESCounterSignatureParameters
,XAdESSignatureParameters
The interface defines signature parameters
-
Method Summary
Modifier and TypeMethodDescriptionbLevel()
Get Baseline B parameters (signed properties)Get the digest algorithmGet the encryption algorithmReturns the mask generation functionGets the signature algorithm.Get the signing certificateboolean
Indicates whether a revocation check shall be performed for a signing certificate and a respectful certificate chain.boolean
Indicates if it is possible to generate ToBeSigned data without the signing certificate.boolean
Indicates if it is possible to sign with an expired certificate.boolean
Indicates if it is possible to sign with a not yet valid certificate.
-
Method Details
-
getSigningCertificate
CertificateToken getSigningCertificate()Get the signing certificate- Returns:
- the signing certificate
-
isGenerateTBSWithoutCertificate
boolean isGenerateTBSWithoutCertificate()Indicates if it is possible to generate ToBeSigned data without the signing certificate. The default values is false.- Returns:
- true if signing certificate is not required when generating ToBeSigned data.
-
isSignWithExpiredCertificate
boolean isSignWithExpiredCertificate()Indicates if it is possible to sign with an expired certificate. The default value is false.- Returns:
- true if signature with an expired certificate is allowed
-
isSignWithNotYetValidCertificate
boolean isSignWithNotYetValidCertificate()Indicates if it is possible to sign with a not yet valid certificate. The default value is false.- Returns:
- true if signature with a not yet valid certificate is allowed
-
isCheckCertificateRevocation
boolean isCheckCertificateRevocation()Indicates whether a revocation check shall be performed for a signing certificate and a respectful certificate chain. When set to false, the revocation check is not performed. When set to true, a real-time revocation is being requested from external sources (shall be defined in CertificateVerifier) and processed according to alerts set within that CertificateVerifier. Default value : false (no revocation check is performed on signature creation or T-level extension)- Returns:
- if signature with a revoked certificate is allowed
-
bLevel
BLevelParameters bLevel()Get Baseline B parameters (signed properties)- Returns:
- the Baseline B parameters
-
getDigestAlgorithm
DigestAlgorithm getDigestAlgorithm()Get the digest algorithm- Returns:
- the digest algorithm
-
getMaskGenerationFunction
MaskGenerationFunction getMaskGenerationFunction()Returns the mask generation function- Returns:
MaskGenerationFunction
-
getEncryptionAlgorithm
EncryptionAlgorithm getEncryptionAlgorithm()Get the encryption algorithm- Returns:
- the encryption algorithm.
-
getSignatureAlgorithm
SignatureAlgorithm getSignatureAlgorithm()Gets the signature algorithm.- Returns:
- the signature algorithm
-