Class P7ContentSignerParameters


  • public final class P7ContentSignerParameters
    extends java.lang.Object

    Class that defines the common elements for the generation of CAdES signatures.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 28/06/2011.
    • Constructor Detail

      • P7ContentSignerParameters

        public P7ContentSignerParameters​(byte[] content,
                                         java.lang.String signatureAlgorithm,
                                         java.security.KeyStore.PrivateKeyEntry keyEntry)
        Constructor method for the class P7ContentSignerParameters.java.
        Parameters:
        content - Parameter that represents the data to sign.
        signatureAlgorithm - Parameter that represents the signature algorithm.
        keyEntry - Parameter that represents the private key used to generate the signature.
      • P7ContentSignerParameters

        public P7ContentSignerParameters​(byte[] content,
                                         java.lang.String signatureAlgorithm,
                                         java.security.KeyStore.PrivateKeyEntry keyEntry,
                                         java.util.Properties optionalParameters)
        Constructor method for the class P7ContentSignerParameters.java.
        Parameters:
        content - Parameter that represents the data to sign.
        signatureAlgorithm - Parameter that represents the signature algorithm.
        keyEntry - Parameter that represents the private key used to generate the signature.
        optionalParameters - Optional parameters used in the signing process.
      • P7ContentSignerParameters

        public P7ContentSignerParameters​(java.lang.String signatureAlgorithm,
                                         java.security.KeyStore.PrivateKeyEntry keyEntry,
                                         java.util.Properties optionalParameters)
        Constructor method for the class P7ContentSignerParameters.java.
        Parameters:
        signatureAlgorithm - Parameter that represents the signature algorithm.
        keyEntry - Parameter that represents the private key used to generate the signature.
        optionalParameters - Optional parameters used in the signing process.
    • Method Detail

      • getContent

        public byte[] getContent()
        Gets the value of the attribute data.
        Returns:
        the value of the attribute data.
      • getSignatureAlgorithm

        public java.lang.String getSignatureAlgorithm()
        Gets the value of the attribute signAlgorithm.
        Returns:
        the value of the attribute signAlgorithm.
      • getPrivateKey

        public java.security.KeyStore.PrivateKeyEntry getPrivateKey()
        Gets the value of the attribute privateKey.
        Returns:
        the value of the attribute privateKey.
      • getDigestValue

        public byte[] getDigestValue()
        Gets the value of the attribute digestValue.
        Returns:
        the value of the attribute digestValue.
      • setDigestValue

        public void setDigestValue​(byte[] digestValueParam)
        Sets the value of the attribute digestValue.
        Parameters:
        digestValueParam - The value for the attribute digestValue.
      • setOptionalParams

        public void setOptionalParams​(java.util.Properties optionalParameters)
        Sets the value of the attribute optionalParams.
        Parameters:
        optionalParameters - The value for the attribute optionalParams.
      • getOptionalParams

        public java.util.Properties getOptionalParams()
        Gets the value of the attribute optionalParams.
        Returns:
        the value of the attribute optionalParams.
      • getSignatureValue

        public byte[] getSignatureValue()
        Gets the value of the attribute signatureValue.
        Returns:
        the value of the attribute signatureValue.
      • setSignatureValue

        public void setSignatureValue​(byte[] signValue)
        Sets the value of the attribute signatureValue.
        Parameters:
        signValue - The value for the attribute signatureValue.
      • setContent

        public void setContent​(byte[] content)
        Sets the value of the attribute data.
        Parameters:
        content - The value for the attribute data.