Class TSAClient


  • public class TSAClient
    extends java.lang.Object
    Time Stamping Authority (TSA) Client [RFC 3161].
    Author:
    Vakhtang Koroghlishvili, John Hewson
    • Constructor Summary

      Constructors 
      Constructor Description
      TSAClient​(java.net.URL url, java.lang.String username, java.lang.String password, java.security.MessageDigest digest)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.tsp.TimeStampToken getTimeStampToken​(java.io.InputStream content)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TSAClient

        public TSAClient​(java.net.URL url,
                         java.lang.String username,
                         java.lang.String password,
                         java.security.MessageDigest digest)
        Parameters:
        url - the URL of the TSA service
        username - user name of TSA
        password - password of TSA
        digest - the message digest to use
    • Method Detail

      • getTimeStampToken

        public org.bouncycastle.tsp.TimeStampToken getTimeStampToken​(java.io.InputStream content)
                                                              throws java.io.IOException
        Parameters:
        content -
        Returns:
        the time stamp token
        Throws:
        java.io.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