Class RemoteSignatureParameters
java.lang.Object
eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters
- All Implemented Interfaces:
Serializable
public class RemoteSignatureParameters extends Object implements Serializable
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RemoteSignatureParameters() -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)RemoteTimestampParametersgetArchiveTimestampParameters()Get the parameters for achive timestamp (Baseline-LTA)ASiCContainerTypegetAsicContainerType()RemoteBLevelParametersgetBLevelParams()Get Baseline B parameters (signed properties)List<RemoteCertificate>getCertificateChain()RemoteTimestampParametersgetContentTimestampParameters()Get the parameters for content timestamp (Baseline-B)List<TimestampDTO>getContentTimestamps()Gets a list of content timestampsList<RemoteDocument>getDetachedContents()DigestAlgorithmgetDigestAlgorithm()Get the digest algorithmEncryptionAlgorithmgetEncryptionAlgorithm()Get the encryption algorithmRemoteSignatureImageParametersgetImageParameters()Get the image information to be included (PAdES).MaskGenerationFunctiongetMaskGenerationFunction()Get the mask generation functionDigestAlgorithmgetReferenceDigestAlgorithm()Get the digest algorithm for ds:Reference or message-digest attributeSignatureAlgorithmgetSignatureAlgorithm()Gets the signature algorithm.SignatureLevelgetSignatureLevel()Get signature level: XAdES_BASELINE_T, CAdES_BASELINE_LTA...SignaturePackaginggetSignaturePackaging()Get Signature packagingRemoteTimestampParametersgetSignatureTimestampParameters()Get the parameters for signature timestamp (Baseline-T)RemoteCertificategetSigningCertificate()inthashCode()booleanisGenerateTBSWithoutCertificate()Indicates if it is possible to generate ToBeSigned data without the signing certificate.booleanisSignWithExpiredCertificate()Indicates if it is possible to sign with an expired certificate.voidsetArchiveTimestampParameters(RemoteTimestampParameters archiveTimestampParameters)Set the parameters to produce the archive timestamp (Baseline-LTA)voidsetAsicContainerType(ASiCContainerType asicContainerType)voidsetBLevelParams(RemoteBLevelParameters bLevelParams)Set the Baseline B parameters (signed properties)voidsetCertificateChain(List<RemoteCertificate> certificateChain)voidsetContentTimestampParameters(RemoteTimestampParameters contentTimestampParameters)Set the parameters to produce the content timestamp (Baseline-B)voidsetContentTimestamps(List<TimestampDTO> contentTimestamps)Sets a list of content timestamps to be added into the signaturevoidsetDetachedContents(List<RemoteDocument> detachedContents)voidsetDigestAlgorithm(DigestAlgorithm digestAlgorithm)Set the digest algorithmvoidsetEncryptionAlgorithm(EncryptionAlgorithm encryptionAlgorithm)This setter should be used only when dealing with web services (or when signing in three steps).voidsetGenerateTBSWithoutCertificate(boolean generateTBSWithoutCertificate)Allows to change the default behaviour regarding the requirements of signing certificate to generate ToBeSigned data.voidsetImageParameters(RemoteSignatureImageParameters imageParameters)Set the image information to be included (PAdES).voidsetMaskGenerationFunction(MaskGenerationFunction maskGenerationFunction)voidsetReferenceDigestAlgorithm(DigestAlgorithm referenceDigestAlgorithm)voidsetSignatureLevel(SignatureLevel signatureLevel)Set signature level.voidsetSignaturePackaging(SignaturePackaging signaturePackaging)Set Signature packagingvoidsetSignatureTimestampParameters(RemoteTimestampParameters signatureTimestampParameters)Set the parameters to produce the signature timestamp (Baseline-T)voidsetSigningCertificate(RemoteCertificate signingCertificate)voidsetSignWithExpiredCertificate(boolean signWithExpiredCertificate)Allows to change the default behavior regarding the use of an expired certificate.StringtoString()
-
Constructor Details
-
RemoteSignatureParameters
public RemoteSignatureParameters()
-
-
Method Details
-
getSigningCertificate
-
setSigningCertificate
-
getCertificateChain
-
setCertificateChain
-
getDetachedContents
-
setDetachedContents
-
getAsicContainerType
-
setAsicContainerType
-
getSignatureLevel
Get signature level: XAdES_BASELINE_T, CAdES_BASELINE_LTA...- Returns:
- the expected signature level
-
setSignatureLevel
Set signature level. This field cannot be null.- Parameters:
signatureLevel- the expected signature level
-
getReferenceDigestAlgorithm
Get the digest algorithm for ds:Reference or message-digest attribute- Returns:
- the digest algorithm for ds:Reference or message-digest attribute
-
setReferenceDigestAlgorithm
-
getBLevelParams
Get Baseline B parameters (signed properties)- Returns:
- the Baseline B parameters
-
setBLevelParams
Set the Baseline B parameters (signed properties)- Parameters:
bLevelParams- the baseline B properties
-
getSignaturePackaging
Get Signature packaging- Returns:
- the expected signature packaging
-
setSignaturePackaging
Set Signature packaging- Parameters:
signaturePackaging- the expected signature packaging
-
getDigestAlgorithm
Get the digest algorithm- Returns:
- the digest algorithm
-
setDigestAlgorithm
Set the digest algorithm- Parameters:
digestAlgorithm- the digest algorithm to set
-
setEncryptionAlgorithm
This setter should be used only when dealing with web services (or when signing in three steps). Usually the encryption algorithm is automatically extrapolated from the private key.- Parameters:
encryptionAlgorithm- the encryption algorithm to use
-
setMaskGenerationFunction
-
getEncryptionAlgorithm
Get the encryption algorithm- Returns:
- the encryption algorithm.
-
getMaskGenerationFunction
Get the mask generation function- Returns:
- the mask generation function.
-
getSignatureAlgorithm
Gets the signature algorithm.- Returns:
- the signature algorithm
-
getContentTimestamps
Gets a list of content timestamps- Returns:
- list of
TimestampDTOs
-
setContentTimestamps
Sets a list of content timestamps to be added into the signature- Parameters:
contentTimestamps- list of contentTimestampDTOs to set
-
getContentTimestampParameters
Get the parameters for content timestamp (Baseline-B)- Returns:
- the parameters to produce a content timestamp
-
setContentTimestampParameters
Set the parameters to produce the content timestamp (Baseline-B)- Parameters:
contentTimestampParameters- the parameters to produce the content timestamp
-
getSignatureTimestampParameters
Get the parameters for signature timestamp (Baseline-T)- Returns:
- the parameters to produce a signature timestamp
-
setSignatureTimestampParameters
public void setSignatureTimestampParameters(RemoteTimestampParameters signatureTimestampParameters)Set the parameters to produce the signature timestamp (Baseline-T)- Parameters:
signatureTimestampParameters- the parameters to produce the signature timestamp
-
getArchiveTimestampParameters
Get the parameters for achive timestamp (Baseline-LTA)- Returns:
- the parameters to produce an archive timestamp
-
setArchiveTimestampParameters
Set the parameters to produce the archive timestamp (Baseline-LTA)- Parameters:
archiveTimestampParameters- the parameters to produce the archive timestamp
-
isSignWithExpiredCertificate
public 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
-
setSignWithExpiredCertificate
public void setSignWithExpiredCertificate(boolean signWithExpiredCertificate)Allows to change the default behavior regarding the use of an expired certificate.- Parameters:
signWithExpiredCertificate- true if signature with an expired certificate is allowed
-
isGenerateTBSWithoutCertificate
public 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.
-
setGenerateTBSWithoutCertificate
public void setGenerateTBSWithoutCertificate(boolean generateTBSWithoutCertificate)Allows to change the default behaviour regarding the requirements of signing certificate to generate ToBeSigned data.- Parameters:
generateTBSWithoutCertificate- true if it should be possible to generate ToBeSigned data without certificate.
-
getImageParameters
Get the image information to be included (PAdES).- Returns:
- the image information to be included.
-
setImageParameters
Set the image information to be included (PAdES).- Parameters:
imageParameters- the image information to be included.
-
toString
-
hashCode
public int hashCode() -
equals
-