Class TimeStampSignatureWithKeystore

  • All Implemented Interfaces:
    TimeStampSignature

    public class TimeStampSignatureWithKeystore
    extends java.lang.Object
    implements TimeStampSignature
    Generate a time stamp token with a local PKCS12 keystore.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.bouncycastle.tsp.TimeStampResponse sign​(org.bouncycastle.tsp.TimeStampRequest request)  
      • Methods inherited from class java.lang.Object

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

      • TimeStampSignatureWithKeystore

        public TimeStampSignatureWithKeystore​(java.io.File pkcs12Path,
                                              char[] keystorePassword)
                                       throws java.security.KeyStoreException,
                                              java.security.cert.CertificateException,
                                              java.security.NoSuchAlgorithmException,
                                              java.io.IOException,
                                              java.security.UnrecoverableKeyException
        Parameters:
        pkcs12Path - file link to pkcs12 keystore
        keystorePassword -
        Throws:
        java.security.KeyStoreException
        java.security.cert.CertificateException
        java.security.NoSuchAlgorithmException
        java.io.IOException
        java.security.UnrecoverableKeyException
    • Method Detail

      • sign

        public org.bouncycastle.tsp.TimeStampResponse sign​(org.bouncycastle.tsp.TimeStampRequest request)
                                                    throws org.bouncycastle.operator.OperatorCreationException,
                                                           org.bouncycastle.tsp.TSPException,
                                                           java.security.cert.CertificateEncodingException
        Specified by:
        sign in interface TimeStampSignature
        Parameters:
        request - time stamp request
        Returns:
        time stamp response
        Throws:
        org.bouncycastle.operator.OperatorCreationException
        org.bouncycastle.tsp.TSPException
        java.security.cert.CertificateEncodingException