Class TSAClientBouncyCastle

  • All Implemented Interfaces:
    TSAClient

    public class TSAClientBouncyCastle
    extends Object
    implements TSAClient
    Time Stamp Authority Client interface implementation using Bouncy Castle org.bouncycastle.tsp package.

    Created by Aiken Sam, 2006-11-15, refactored by Martin Brunecky, 07/15/2007 for ease of subclassing.

    Since:
    2.1.6
    • Field Detail

      • tsaURL

        protected String tsaURL
        URL of the Time Stamp Authority
      • tsaUsername

        protected String tsaUsername
        TSA Username
      • tsaPassword

        protected String tsaPassword
        TSA password
      • tokSzEstimate

        protected int tokSzEstimate
        Estimate of the received time stamp token
    • Constructor Detail

      • TSAClientBouncyCastle

        public TSAClientBouncyCastle​(String url)
        Creates an instance of a TSAClient that will use BouncyCastle.
        Parameters:
        url - String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")
      • TSAClientBouncyCastle

        public TSAClientBouncyCastle​(String url,
                                     String username,
                                     String password)
        Creates an instance of a TSAClient that will use BouncyCastle.
        Parameters:
        url - String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")
        username - String - user(account) name
        password - String - password
      • TSAClientBouncyCastle

        public TSAClientBouncyCastle​(String url,
                                     String username,
                                     String password,
                                     int tokSzEstimate)
        Constructor. Note the token size estimate is updated by each call, as the token size is not likely to change (as long as we call the same TSA using the same imprint length).
        Parameters:
        url - String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")
        username - String - user(account) name
        password - String - password
        tokSzEstimate - int - estimated size of received time stamp token (DER encoded)