Class RemoteSignatureParameters
java.lang.Object
eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters
- All Implemented Interfaces:
Serializable
The parameters for a signature creation
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the parameters for achive timestamp (Baseline-LTA)eu.europa.esig.dss.enumerations.ASiCContainerTypeGets ASiC container typeGet Baseline B parameters (signed properties)List<eu.europa.esig.dss.ws.dto.RemoteCertificate> Gets the certificate chainGet the parameters for content timestamp (Baseline-B)List<eu.europa.esig.dss.ws.dto.TimestampDTO> Gets a list of content timestampsList<eu.europa.esig.dss.ws.dto.RemoteDocument> Gets the detached contentseu.europa.esig.dss.enumerations.DigestAlgorithmGet the digest algorithmeu.europa.esig.dss.enumerations.EncryptionAlgorithmGet the encryption algorithmGet the image information to be included (PAdES).eu.europa.esig.dss.enumerations.JWSSerializationTypeGetsJWSSerializationTypeNOTE: used only for JAdESeu.europa.esig.dss.enumerations.DigestAlgorithmGet the digest algorithm for ds:Reference or message-digest attributeeu.europa.esig.dss.enumerations.SigDMechanismGetsSigDMechanismNOTE: used only for JAdES with DETACHED packagingReturns a signature Id being counter signedeu.europa.esig.dss.enumerations.SignatureLevelGet signature level: XAdES_BASELINE_T, CAdES_BASELINE_LTA...eu.europa.esig.dss.enumerations.SignaturePackagingGet Signature packagingGet the parameters for signature timestamp (Baseline-T)eu.europa.esig.dss.ws.dto.RemoteCertificateGets the signing certificateinthashCode()Gets whether etsiU header components shall be base64url encoded NOTE: used only for JAdESGets whether a payload shall be base64url encoded NOTE: used only for JAdESbooleanReturns if original XML document shall be embedded into ENVELOPING signature in its clear XML representationbooleanIndicates if it is possible to generate ToBeSigned data without the signing certificate.booleanReturns if a manifest signature should be createdvoidsetArchiveTimestampParameters(RemoteTimestampParameters archiveTimestampParameters) Set the parameters to produce the archive timestamp (Baseline-LTA)voidsetAsicContainerType(eu.europa.esig.dss.enumerations.ASiCContainerType asicContainerType) Sets ASiCContainerType for ASiC format creationvoidsetBase64UrlEncodedEtsiUComponents(Boolean base64UrlEncodedEtsiUComponents) Sets whether etsiU header components shall be base64url encoded NOTE: used only for JAdESvoidsetBase64UrlEncodedPayload(Boolean base64UrlEncodedPayload) Sets whether a payload shall be base64url encoded NOTE: used only for JAdESvoidsetBLevelParams(RemoteBLevelParameters bLevelParams) Set the Baseline B parameters (signed properties)voidsetCertificateChain(List<eu.europa.esig.dss.ws.dto.RemoteCertificate> certificateChain) Sets the certificate chain of the signing certificatevoidsetContentTimestampParameters(RemoteTimestampParameters contentTimestampParameters) Set the parameters to produce the content timestamp (Baseline-B)voidsetContentTimestamps(List<eu.europa.esig.dss.ws.dto.TimestampDTO> contentTimestamps) Sets a list of content timestamps to be added into the signaturevoidsetDetachedContents(List<eu.europa.esig.dss.ws.dto.RemoteDocument> detachedContents) Sets a list of signed detached documentsvoidsetDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) Set the digest algorithmvoidsetEmbedXML(boolean embedXML) Sets whether the original XML document shall be embedded in its XML representation NOTE: used only for XAdESvoidsetEncryptionAlgorithm(eu.europa.esig.dss.enumerations.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).voidsetJwsSerializationType(eu.europa.esig.dss.enumerations.JWSSerializationType jwsSerializationType) SetsJWSSerializationTypevoidsetManifestSignature(boolean manifestSignature) Sets whether a manifest signature shall be created NOTE: used only for XAdESvoidsetReferenceDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm referenceDigestAlgorithm) Sets the digest algorithm for ds:Reference or message-digest attributevoidsetSigDMechanism(eu.europa.esig.dss.enumerations.SigDMechanism sigDMechanism) SetsSigDMechanismNOTE: used only for JAdES with DETACHED packagingvoidsetSignatureIdToCounterSign(String signatureIdToCounterSign) Sets the signature Id to counter signvoidsetSignatureLevel(eu.europa.esig.dss.enumerations.SignatureLevel signatureLevel) Set signature level.voidsetSignaturePackaging(eu.europa.esig.dss.enumerations.SignaturePackaging signaturePackaging) Set Signature packagingvoidsetSignatureTimestampParameters(RemoteTimestampParameters signatureTimestampParameters) Set the parameters to produce the signature timestamp (Baseline-T)voidsetSigningCertificate(eu.europa.esig.dss.ws.dto.RemoteCertificate signingCertificate) Sets the signing certificatetoString()
-
Constructor Details
-
RemoteSignatureParameters
public RemoteSignatureParameters()Default constructor
-
-
Method Details
-
getSigningCertificate
public eu.europa.esig.dss.ws.dto.RemoteCertificate getSigningCertificate()Gets the signing certificate- Returns:
RemoteCertificate
-
setSigningCertificate
public void setSigningCertificate(eu.europa.esig.dss.ws.dto.RemoteCertificate signingCertificate) Sets the signing certificate- Parameters:
signingCertificate-RemoteCertificate
-
getCertificateChain
Gets the certificate chain- Returns:
- a list of
RemoteCertificates
-
setCertificateChain
Sets the certificate chain of the signing certificate- Parameters:
certificateChain- a list ofRemoteCertificates
-
getDetachedContents
Gets the detached contents- Returns:
- a list of
RemoteDocuments
-
setDetachedContents
Sets a list of signed detached documents- Parameters:
detachedContents- a ist ofRemoteDocuments
-
getAsicContainerType
public eu.europa.esig.dss.enumerations.ASiCContainerType getAsicContainerType()Gets ASiC container type- Returns:
ASiCContainerType
-
setAsicContainerType
public void setAsicContainerType(eu.europa.esig.dss.enumerations.ASiCContainerType asicContainerType) Sets ASiCContainerType for ASiC format creation- Parameters:
asicContainerType-ASiCContainerType
-
getSignatureLevel
public eu.europa.esig.dss.enumerations.SignatureLevel getSignatureLevel()Get signature level: XAdES_BASELINE_T, CAdES_BASELINE_LTA...- Returns:
- the expected signature level
-
setSignatureLevel
public void setSignatureLevel(eu.europa.esig.dss.enumerations.SignatureLevel signatureLevel) Set signature level. This field cannot be null.- Parameters:
signatureLevel- the expected signature level
-
isEmbedXML
public boolean isEmbedXML()Returns if original XML document shall be embedded into ENVELOPING signature in its clear XML representation- Returns:
- TRUE if the original document shall be embedded in its XML representation, FALSE of base64 encoded
-
setEmbedXML
public void setEmbedXML(boolean embedXML) Sets whether the original XML document shall be embedded in its XML representation NOTE: used only for XAdES- Parameters:
embedXML- whether the original object shall be embedded as XML
-
isManifestSignature
public boolean isManifestSignature()Returns if a manifest signature should be created- Returns:
- TRUE if a signature signs an XML Manifest, FALSE otherwise
-
setManifestSignature
public void setManifestSignature(boolean manifestSignature) Sets whether a manifest signature shall be created NOTE: used only for XAdES- Parameters:
manifestSignature- whether a manifest signature shall be created
-
getJwsSerializationType
public eu.europa.esig.dss.enumerations.JWSSerializationType getJwsSerializationType()GetsJWSSerializationTypeNOTE: used only for JAdES- Returns:
JWSSerializationType
-
setJwsSerializationType
public void setJwsSerializationType(eu.europa.esig.dss.enumerations.JWSSerializationType jwsSerializationType) SetsJWSSerializationType- Parameters:
jwsSerializationType-JWSSerializationTypeto use
-
getSigDMechanism
public eu.europa.esig.dss.enumerations.SigDMechanism getSigDMechanism()GetsSigDMechanismNOTE: used only for JAdES with DETACHED packaging- Returns:
SigDMechanism
-
setSigDMechanism
public void setSigDMechanism(eu.europa.esig.dss.enumerations.SigDMechanism sigDMechanism) SetsSigDMechanismNOTE: used only for JAdES with DETACHED packaging- Parameters:
sigDMechanism-SigDMechanismto use
-
isBase64UrlEncodedPayload
Gets whether a payload shall be base64url encoded NOTE: used only for JAdES- Returns:
- whether a JAdES payload shall be base64url encoded
-
setBase64UrlEncodedPayload
Sets whether a payload shall be base64url encoded NOTE: used only for JAdES- Parameters:
base64UrlEncodedPayload- whether a JAdES payload shall be base64url encoded
-
isBase64UrlEncodedEtsiUComponents
Gets whether etsiU header components shall be base64url encoded NOTE: used only for JAdES- Returns:
- whether JAdES etsiU header components shall be base64url encoded
-
setBase64UrlEncodedEtsiUComponents
Sets whether etsiU header components shall be base64url encoded NOTE: used only for JAdES- Parameters:
base64UrlEncodedEtsiUComponents- whether JAdES etsiU header components shall be base64url encoded
-
getReferenceDigestAlgorithm
public eu.europa.esig.dss.enumerations.DigestAlgorithm getReferenceDigestAlgorithm()Get the digest algorithm for ds:Reference or message-digest attribute- Returns:
- the digest algorithm for ds:Reference or message-digest attribute
-
setReferenceDigestAlgorithm
public void setReferenceDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm referenceDigestAlgorithm) Sets the digest algorithm for ds:Reference or message-digest attribute- Parameters:
referenceDigestAlgorithm-DigestAlgorithm
-
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
public eu.europa.esig.dss.enumerations.SignaturePackaging getSignaturePackaging()Get Signature packaging- Returns:
- the expected signature packaging
-
setSignaturePackaging
public void setSignaturePackaging(eu.europa.esig.dss.enumerations.SignaturePackaging signaturePackaging) Set Signature packaging- Parameters:
signaturePackaging- the expected signature packaging
-
getDigestAlgorithm
public eu.europa.esig.dss.enumerations.DigestAlgorithm getDigestAlgorithm()Get the digest algorithm- Returns:
- the digest algorithm
-
setDigestAlgorithm
public void setDigestAlgorithm(eu.europa.esig.dss.enumerations.DigestAlgorithm digestAlgorithm) Set the digest algorithm- Parameters:
digestAlgorithm- the digest algorithm to set
-
getEncryptionAlgorithm
public eu.europa.esig.dss.enumerations.EncryptionAlgorithm getEncryptionAlgorithm()Get the encryption algorithm- Returns:
- the encryption algorithm.
-
setEncryptionAlgorithm
public void setEncryptionAlgorithm(eu.europa.esig.dss.enumerations.EncryptionAlgorithm encryptionAlgorithm) 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
-
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
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
-
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:
RemoteSignatureImageParametersthe image information to be included.
-
setImageParameters
Set the image information to be included (PAdES).- Parameters:
imageParameters-RemoteSignatureImageParametersthe image information to be included.
-
getSignatureIdToCounterSign
-
setSignatureIdToCounterSign
-
toString
-
equals
-
hashCode
-