Package es.gob.afirma.signature.cades
Class P7ContentSignerParameters
- java.lang.Object
-
- es.gob.afirma.signature.cades.P7ContentSignerParameters
-
public final class P7ContentSignerParameters extends java.lang.ObjectClass 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 Summary
Constructors Constructor Description P7ContentSignerParameters(byte[] content, java.lang.String signatureAlgorithm, java.security.KeyStore.PrivateKeyEntry keyEntry)Constructor method for the class P7ContentSignerParameters.java.P7ContentSignerParameters(byte[] content, java.lang.String signatureAlgorithm, java.security.KeyStore.PrivateKeyEntry keyEntry, java.util.Properties optionalParameters)Constructor method for the class P7ContentSignerParameters.java.P7ContentSignerParameters(java.lang.String signatureAlgorithm, java.security.KeyStore.PrivateKeyEntry keyEntry, java.util.Properties optionalParameters)Constructor method for the class P7ContentSignerParameters.java.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getContent()Gets the value of the attributedata.byte[]getDigestValue()Gets the value of the attributedigestValue.java.util.PropertiesgetOptionalParams()Gets the value of the attributeoptionalParams.java.security.KeyStore.PrivateKeyEntrygetPrivateKey()Gets the value of the attributeprivateKey.java.lang.StringgetSignatureAlgorithm()Gets the value of the attributesignAlgorithm.byte[]getSignatureValue()Gets the value of the attributesignatureValue.voidsetContent(byte[] content)Sets the value of the attributedata.voidsetDigestValue(byte[] digestValueParam)Sets the value of the attributedigestValue.voidsetOptionalParams(java.util.Properties optionalParameters)Sets the value of the attributeoptionalParams.voidsetSignatureValue(byte[] signValue)Sets the value of the attributesignatureValue.
-
-
-
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 attributedata.- Returns:
- the value of the attribute
data.
-
getSignatureAlgorithm
public java.lang.String getSignatureAlgorithm()
Gets the value of the attributesignAlgorithm.- Returns:
- the value of the attribute
signAlgorithm.
-
getPrivateKey
public java.security.KeyStore.PrivateKeyEntry getPrivateKey()
Gets the value of the attributeprivateKey.- Returns:
- the value of the attribute
privateKey.
-
getDigestValue
public byte[] getDigestValue()
Gets the value of the attributedigestValue.- Returns:
- the value of the attribute
digestValue.
-
setDigestValue
public void setDigestValue(byte[] digestValueParam)
Sets the value of the attributedigestValue.- Parameters:
digestValueParam- The value for the attributedigestValue.
-
setOptionalParams
public void setOptionalParams(java.util.Properties optionalParameters)
Sets the value of the attributeoptionalParams.- Parameters:
optionalParameters- The value for the attributeoptionalParams.
-
getOptionalParams
public java.util.Properties getOptionalParams()
Gets the value of the attributeoptionalParams.- Returns:
- the value of the attribute
optionalParams.
-
getSignatureValue
public byte[] getSignatureValue()
Gets the value of the attributesignatureValue.- Returns:
- the value of the attribute
signatureValue.
-
setSignatureValue
public void setSignatureValue(byte[] signValue)
Sets the value of the attributesignatureValue.- Parameters:
signValue- The value for the attributesignatureValue.
-
-