public interface PKIInterface
Modifier and Type | Method and Description |
---|---|
byte[] |
createTimestamp(byte[] dataToTimestamp)
Get a timestamp on the bytes provided.
|
int |
getSignatureSize(PKISignatureType type,
HashAlgorithm hashAlgo,
byte[] data,
com.adobe.fd.signatures.pki.client.signature.SignParams params)
Estimate the size of the signature that will be created using the params provided
|
void |
setCertificates(CertificateInfo[] inCerts)
Sets the Input certificates that should be used for chain building
|
void |
setRevocationInfo(RevocationInfoList inRevocationInfo)
Sets the Input Revocation Info that should be used for checking
revocation.
|
byte[] |
sign(PKISignatureType type,
PrivateKey key,
HashAlgorithm hashAlgo,
byte[] data,
com.adobe.fd.signatures.pki.client.signature.SignParams params)
Sign the data with the key provided
|
VerificationInfo |
verifyCertificate(CertificateInfo certInfo,
Date verificationTime,
RevocationCheckStyle revocationOption,
int trustLevel)
Deprecated.
|
VerificationInfo |
verifyCertificate(CertificateInfo certInfo,
Date verificationTime,
RevocationCheckStyle revocationOption,
int trustLevel,
boolean isFromSign)
Verifies a certificate for trust and revocation @author ankit
|
com.adobe.fd.signatures.pki.client.signature.SignatureData |
verifySignature(PKISignatureType type,
byte[] signatureBytes,
int offset,
int length,
com.adobe.fd.signatures.pki.client.signature.VerifyParams params)
Verifies the signature bytes of the specified type
|
TSPVerificationInfo |
verifyTimestamp(byte[] timestampToken,
byte[] message)
Verifies the Timestamp token DER bytes as per the preferences provided
|
void setCertificates(CertificateInfo[] inCerts) throws PKIException
inCerts
- Input certificates that should be used for chain buildingPKIException
void setRevocationInfo(RevocationInfoList inRevocationInfo)
inRevocationInfo
- Input Revocation Info that should be used for checking
revocation.VerificationInfo verifyCertificate(CertificateInfo certInfo, Date verificationTime, RevocationCheckStyle revocationOption, int trustLevel, boolean isFromSign) throws PKIException
certInfo
- Certificate that needs to be verifiedverificationTime
- Time of verificationrevocationOption
- The type of revocation checking to be done for this
certificatetrustLevel
- Level of trust of trust anchors that will be retrieved from
Titan TMisFromSign
- certificate verification will work differently if the method is called from sign or certify.PKIException
- Thrown if Verification could not be completed.TrustBit
@Deprecated VerificationInfo verifyCertificate(CertificateInfo certInfo, Date verificationTime, RevocationCheckStyle revocationOption, int trustLevel) throws PKIException
certInfo
- Certificate that needs to be verifiedverificationTime
- Time of verificationrevocationOption
- The type of revocation checking to be done for this
certificatetrustLevel
- Level of trust of trust anchors that will be retrieved from
Titan TMPKIException
- Thrown if Verification could not be completed.TrustBit
byte[] sign(PKISignatureType type, PrivateKey key, HashAlgorithm hashAlgo, byte[] data, com.adobe.fd.signatures.pki.client.signature.SignParams params) throws PKIException
type
- Type of signature to be generatedkey
- Private Key to be used for signinghashAlgo
- Hash Algorithm to be used to digesting the messagedata
- Data to be signedparams
- Additional parameters that may be required during signingPKIException
int getSignatureSize(PKISignatureType type, HashAlgorithm hashAlgo, byte[] data, com.adobe.fd.signatures.pki.client.signature.SignParams params) throws PKIException
type
- Type of signature to be generatedhashAlgo
- Hash Algorithm to be used to digesting the messagedata
- Data to be signedparams
- Additional parameters that may be required during signingPKIException
com.adobe.fd.signatures.pki.client.signature.SignatureData verifySignature(PKISignatureType type, byte[] signatureBytes, int offset, int length, com.adobe.fd.signatures.pki.client.signature.VerifyParams params) throws PKIException
type
- Type of signaturesignatureBytes
- The signature raw bytesoffset
- Offset of the signature byteslength
- Length of the signatureparams
- Signature ParametersPKIException
byte[] createTimestamp(byte[] dataToTimestamp) throws com.adobe.fd.signatures.pki.exception.TSPException, com.adobe.fd.signatures.pki.transport.PKITransportException
dataToTimestamp
- The data to timestampcom.adobe.fd.signatures.pki.exception.TSPException
- Timestamp related exceptioncom.adobe.fd.signatures.pki.transport.PKITransportException
- Any communication related exceptionTSPVerificationInfo verifyTimestamp(byte[] timestampToken, byte[] message)
timestampToken
- Timestamp token DER bytesmessage
- The Message that is associated with this timestampCopyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.