Package org.digidoc4j

Class SignatureParameters

  • All Implemented Interfaces:
    Serializable

    public class SignatureParameters
    extends Object
    implements Serializable
    Signature parameters. Parameter information is used when signing a document. Following items can be specified:
    • Signature production place
    • Roles of the signer
    • Signature id
    • Digest algorithm
    See Also:
    Serialized Form
    • Constructor Detail

      • SignatureParameters

        public SignatureParameters()
    • Method Detail

      • getProductionPlace

        public SignatureProductionPlace getProductionPlace()
        Deprecated.
        Get production place values.
        Returns:
        production place
      • getCity

        public String getCity()
      • setCity

        public void setCity​(String city)
      • getStateOrProvince

        public String getStateOrProvince()
      • setStateOrProvince

        public void setStateOrProvince​(String stateOrProvince)
      • getPostalCode

        public String getPostalCode()
      • setPostalCode

        public void setPostalCode​(String postalCode)
      • getCountry

        public String getCountry()
      • setCountry

        public void setCountry​(String country)
      • getRoles

        public List<String> getRoles()
        Get signing roles.
        Returns:
        signing roles
      • setProductionPlace

        public void setProductionPlace​(SignatureProductionPlace productionPlace)
        Deprecated.
        Set the production place.
        Parameters:
        productionPlace - production place
      • setRoles

        public void setRoles​(List<String> roles)
        Set signing roles.
        Parameters:
        roles - signing roles
      • setSignatureId

        public void setSignatureId​(String signatureId)
        Set signature id.
        Parameters:
        signatureId - signature ID
      • getSignatureId

        public String getSignatureId()
        Get signature id.
        Returns:
        signatureId signature ID
      • setDigestAlgorithm

        public void setDigestAlgorithm​(DigestAlgorithm algorithm)
        Sets container digest type
        Parameters:
        algorithm - digest algorithm
      • getDigestAlgorithm

        public DigestAlgorithm getDigestAlgorithm()
        Gets container digest type
        Returns:
        container digest algorithm
      • getEncryptionAlgorithm

        public EncryptionAlgorithm getEncryptionAlgorithm()
        Get the encryption algorithm
        Returns:
        encryption algorithm
      • setEncryptionAlgorithm

        public void setEncryptionAlgorithm​(EncryptionAlgorithm encryptionAlgorithm)
        Set the encryption algorithm
        Parameters:
        encryptionAlgorithm - encryption algorithm to use
      • setSignatureProfile

        public void setSignatureProfile​(SignatureProfile signatureProfile)
      • setSigningCertificate

        public void setSigningCertificate​(X509Certificate signingCertificate)
      • copy

        public SignatureParameters copy()
        Clones signature parameters
        Returns:
        new signature parameters object