public class TSAClient extends Object
Constructor and Description |
---|
TSAClient(URL url,
String username,
String password,
MessageDigest digest) |
public TSAClient(URL url, String username, String password, MessageDigest digest)
url
- the URL of the TSA serviceusername
- user name of TSApassword
- password of TSAdigest
- the message digest to usepublic byte[] getTimeStampToken(byte[] messageImprint) throws IOException
messageImprint
- imprint of message contentsIOException
- if there was an error with the connection or data from the TSA server,
or if the time stamp response could not be validatedCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.