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@.
| Constructor and 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.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent()
Gets the value of the attribute
data. |
byte[] |
getDigestValue()
Gets the value of the attribute
digestValue. |
java.util.Properties |
getOptionalParams()
Gets the value of the attribute
optionalParams. |
java.security.KeyStore.PrivateKeyEntry |
getPrivateKey()
Gets the value of the attribute
privateKey. |
java.lang.String |
getSignatureAlgorithm()
Gets the value of the attribute
signAlgorithm. |
byte[] |
getSignatureValue()
Gets the value of the attribute
signatureValue. |
void |
setContent(byte[] content)
Sets the value of the attribute
data. |
void |
setDigestValue(byte[] digestValueParam)
Sets the value of the attribute
digestValue. |
void |
setOptionalParams(java.util.Properties optionalParameters)
Sets the value of the attribute
optionalParams. |
void |
setSignatureValue(byte[] signValue)
Sets the value of the attribute
signatureValue. |
public P7ContentSignerParameters(byte[] content,
java.lang.String signatureAlgorithm,
java.security.KeyStore.PrivateKeyEntry keyEntry)
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.public P7ContentSignerParameters(byte[] content,
java.lang.String signatureAlgorithm,
java.security.KeyStore.PrivateKeyEntry keyEntry,
java.util.Properties optionalParameters)
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.public P7ContentSignerParameters(java.lang.String signatureAlgorithm,
java.security.KeyStore.PrivateKeyEntry keyEntry,
java.util.Properties optionalParameters)
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.public byte[] getContent()
data.data.public java.lang.String getSignatureAlgorithm()
signAlgorithm.signAlgorithm.public java.security.KeyStore.PrivateKeyEntry getPrivateKey()
privateKey.privateKey.public byte[] getDigestValue()
digestValue.digestValue.public void setDigestValue(byte[] digestValueParam)
digestValue.digestValueParam - The value for the attribute digestValue.public void setOptionalParams(java.util.Properties optionalParameters)
optionalParams.optionalParameters - The value for the attribute optionalParams.public java.util.Properties getOptionalParams()
optionalParams.optionalParams.public byte[] getSignatureValue()
signatureValue.signatureValue.public void setSignatureValue(byte[] signValue)
signatureValue.signValue - The value for the attribute signatureValue.