Class JKSSignatureToken

All Implemented Interfaces:
SignatureTokenConnection, AutoCloseable

public class JKSSignatureToken extends KeyStoreSignatureTokenConnection
Class holding all Java KeyStore file access logic.
  • Constructor Details

    • JKSSignatureToken

      public JKSSignatureToken(InputStream ksStream, KeyStore.PasswordProtection password)
      Creates a SignatureTokenConnection with the provided InputStream to Java KeyStore file and password.
      Parameters:
      ksStream - the inputstream
      password - the keystore password
    • JKSSignatureToken

      public JKSSignatureToken(byte[] ksBytes, KeyStore.PasswordProtection password)
      Creates a SignatureTokenConnection with the provided binaries to Java KeyStore and password.
      Parameters:
      ksBytes - the binaries
      password - the keystore password
    • JKSSignatureToken

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

      public JKSSignatureToken(String filepath, KeyStore.PasswordProtection password) throws IOException
      Creates a SignatureTokenConnection with the provided filepath to Java 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