public abstract class SignatureParameters
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDigestAlgorithm()
Get digest algorithm, that will be used for pdf content digest
|
java.lang.String |
getSignatureAlgorithm()
Get signature algorithm, that will be used for content signing.
|
java.util.Vector<iaik.asn1.structures.Attribute> |
getSignedSignerInfoAttributes(iaik.cms.SignedDataStream signedData,
iaik.cms.SignerInfo signerInfo,
iaik.x509.X509Certificate[] signerCertificateChain)
Return all signed attributes as determined by the respective parameter class.
|
java.util.Vector<iaik.asn1.structures.Attribute> |
getUnsignedSignerInfoAttributes(iaik.cms.SignedDataStream signedData,
iaik.cms.SignerInfo signerInfo,
iaik.x509.X509Certificate[] signerCertificateChain)
Return all unsigned attributes as determined by the respective parameter class.
|
boolean |
isSigningCertificateAttributeIncluded()
Deprecated.
handling of signed attributes is now done by each parameters class itself, see
getSignedSignerInfoAttributes(SignedDataStream, SignerInfo, X509Certificate[])
. |
void |
setDigestAlgorithm(java.lang.String hashAlgorithm)
Set digest algorithm used for content digest in signature.
|
void |
setSignatureAlgorithm(java.lang.String signatureAlgorithm)
Set the signature algorithm to be used for signing.
|
public void setDigestAlgorithm(java.lang.String hashAlgorithm)
hashAlgorithm
- digest algorithm for hashing the contentpublic void setSignatureAlgorithm(java.lang.String signatureAlgorithm)
signatureAlgorithm
- signature algorithm for signing the contentpublic java.lang.String getDigestAlgorithm()
public java.lang.String getSignatureAlgorithm()
public boolean isSigningCertificateAttributeIncluded()
getSignedSignerInfoAttributes(SignedDataStream, SignerInfo, X509Certificate[])
.public java.util.Vector<iaik.asn1.structures.Attribute> getSignedSignerInfoAttributes(iaik.cms.SignedDataStream signedData, iaik.cms.SignerInfo signerInfo, iaik.x509.X509Certificate[] signerCertificateChain) throws CmsCadesException
signedData
- SignedData object containing the respective signer infosignerInfo
- the corresponding SignerInfo objectsignerCertificateChain
- used certificate chain for the corresponding signer infoCmsCadesException
- if an attribute can't be createdpublic java.util.Vector<iaik.asn1.structures.Attribute> getUnsignedSignerInfoAttributes(iaik.cms.SignedDataStream signedData, iaik.cms.SignerInfo signerInfo, iaik.x509.X509Certificate[] signerCertificateChain) throws CmsCadesException
signedData
- SignedData object containing the respective signer infosignerInfo
- the corresponding SignerInfo objectsignerCertificateChain
- used certificate chain for the corresponding signer infoCmsCadesException
- if an attribute can't be created