Class TSAClient
java.lang.Object
org.apache.pdfbox.examples.signature.TSAClient
Time Stamping Authority (TSA) Client [RFC 3161].
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.bouncycastle.operator.DigestAlgorithmIdentifierFinderprivate final MessageDigestprivate static final org.apache.commons.logging.Logprivate final Stringprivate static final Randomprivate final URLprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.tsp.TimeStampTokengetTimeStampToken(InputStream content) private byte[]getTSAResponse(byte[] request)
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
ALGORITHM_OID_FINDER
private static final org.bouncycastle.operator.DigestAlgorithmIdentifierFinder ALGORITHM_OID_FINDER -
url
-
username
-
password
-
digest
-
RANDOM
-
-
Constructor Details
-
TSAClient
- Parameters:
url- the URL of the TSA serviceusername- user name of TSApassword- password of TSAdigest- the message digest to use
-
-
Method Details
-
getTimeStampToken
public org.bouncycastle.tsp.TimeStampToken getTimeStampToken(InputStream content) throws IOException - Parameters:
content-- Returns:
- the time stamp token
- Throws:
IOException- if there was an error with the connection or data from the TSA server, or if the time stamp response could not be validated
-
getTSAResponse
- Throws:
IOException
-