Class Pkcs12SignatureToken

    • Constructor Detail

      • Pkcs12SignatureToken

        public Pkcs12SignatureToken​(InputStream ksStream,
                                    KeyStore.PasswordProtection password)
        Creates a SignatureTokenConnection with the provided InputStream to PKCS#12 KeyStore file and password.
        Parameters:
        ksStream - the inputstream
        password - the keystore password
      • Pkcs12SignatureToken

        public Pkcs12SignatureToken​(byte[] ksBytes,
                                    KeyStore.PasswordProtection password)
        Creates a SignatureTokenConnection with the provided binaries to PKCS#12 KeyStore and password.
        Parameters:
        ksBytes - the binaries
        password - the keystore password
      • Pkcs12SignatureToken

        public Pkcs12SignatureToken​(File ksFile,
                                    KeyStore.PasswordProtection password)
                             throws IOException
        Creates a SignatureTokenConnection with the provided File to PKCS#12 KeyStore and password.
        Parameters:
        ksFile - the keystore file
        password - the keystore password
        Throws:
        IOException - if an error occurred while reading the file
      • Pkcs12SignatureToken

        public Pkcs12SignatureToken​(String filepath,
                                    KeyStore.PasswordProtection password)
                             throws IOException
        Creates a SignatureTokenConnection with the provided filepath to PKCS#12 KeyStore file and password.
        Parameters:
        filepath - the filepath of the keystore
        password - the keystore password
        Throws:
        IOException - if an error occurred while reading the file