public class CadesTParameters extends CadesBESParameters
CadesSignature,
CadesSignatureStream| Constructor and Description |
|---|
CadesTParameters(java.lang.String tsaUrl)
Constructor for parameters used for a CAdES-T signature creation.
|
CadesTParameters(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password)
Constructor for parameters used for a CAdES-T signature creation.
|
CadesTParameters(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password,
java.lang.String imprintDigestAlgorithm)
Constructor for parameters used for a CAdES-T signature creation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSignatureTimestampProperties(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password)
To create multiple signature timestamps, add further timestamp properties for each timestamp
that shall be added.
|
void |
addSignatureTimestampProperties(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password,
java.lang.String imprintDigestAlgorithm)
To create multiple signature timestamps, add further timestamp properties for each timestamp
that shall be added.
|
java.lang.String |
getImprintDigestAlgorithm()
Get digest algorithm, used to hash the data and create the signature timestamp.
|
TimestampProperties[] |
getSignatureTimestampProperties()
Get all timestamp properties configured for this parameters to create the respective number of
signature timestamps.
|
java.lang.String |
getTsaPw()
Get password for authorization at the timestamp server, used to create the signature timestamp.
|
java.lang.String |
getTsaUrl()
Get URL of timestamp authority, used to create the signature timestamp.
|
java.lang.String |
getTsaUsername()
Get username for authorization at the timestamp server, used to create the signature timestamp.
|
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.
|
addSignaturePolicyIdentifier, getSignedSignerInfoAttributesaddContentTimestampProps, setContentTimestampPropertiesgetDigestAlgorithm, getSignatureAlgorithm, isSigningCertificateAttributeIncluded, setDigestAlgorithm, setSignatureAlgorithmpublic CadesTParameters(java.lang.String tsaUrl)
throws CmsCadesException
TimeStampTokenUtil.DEFAULTDIGESTALGORITHM is used, to hash the data that shall
be timestamped.tsaUrl - URL of the timestamp authorityCmsCadesException - if timestamp authority URL is null or emptypublic CadesTParameters(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password)
throws CmsCadesException
TimeStampTokenUtil.DEFAULTDIGESTALGORITHM is used, to hash the data that shall
be timestamped.tsaUrl - URL of the timestamp authorityusername - username for authorizationpassword - password for authorizationCmsCadesException - if timestamp authority URL is null or emptypublic CadesTParameters(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password,
java.lang.String imprintDigestAlgorithm)
throws CmsCadesException
tsaUrl - URL of the timestamp authorityusername - username for authorizationpassword - password for authorizationimprintDigestAlgorithm - digest algorithm to hash the data, that shall be timestampedCmsCadesException - if timestamp authority URL is null or emptypublic void addSignatureTimestampProperties(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password)
throws CmsCadesException
TimeStampTokenUtil.DEFAULTDIGESTALGORITHM is used, to hash the data that shall be
timestamped.tsaUrl - URL of the timestamp authorityusername - username for authorizationpassword - password for authorizationCmsCadesException - if timestamp authority URL is null or emptypublic void addSignatureTimestampProperties(java.lang.String tsaUrl,
java.lang.String username,
java.lang.String password,
java.lang.String imprintDigestAlgorithm)
throws CmsCadesException
tsaUrl - URL of the timestamp authorityusername - username for authorizationpassword - password for authorizationimprintDigestAlgorithm - digest algorithm to hash the data, that shall be timestampedCmsCadesException - if timestamp authority URL is null or emptypublic java.lang.String getTsaUrl()
public java.lang.String getTsaUsername()
public java.lang.String getTsaPw()
public java.lang.String getImprintDigestAlgorithm()
public TimestampProperties[] getSignatureTimestampProperties()
public java.util.Vector<iaik.asn1.structures.Attribute> getUnsignedSignerInfoAttributes(iaik.cms.SignedDataStream signedData,
iaik.cms.SignerInfo signerInfo,
iaik.x509.X509Certificate[] signerCertificateChain)
throws CmsCadesException
SignatureParametersgetUnsignedSignerInfoAttributes in class SignatureParameterssignedData - 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