Class Pkcs11SignatureToken

    • Constructor Detail

      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path)
        Create the SignatureTokenConnection, using the provided path for the library.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    String extraPkcs11Config)
        Create the SignatureTokenConnection, using the provided path for the library.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        extraPkcs11Config - extra configuration for pkcs11 library
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    KeyStore.PasswordProtection password)
        Sometimes, the password is known in advance. This create a SignatureTokenConnection and the keys will be accessed using the provided password. The default constructor for CallbackPkcs11SignatureToken.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        password - the pin code / password to use
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    KeyStore.PasswordProtection password,
                                    String extraPkcs11Config)
        Sometimes, the password is known in advance. This create a SignatureTokenConnection and the keys will be accessed using the provided password. The default constructor for CallbackPkcs11SignatureToken.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        password - the pin code / password to use
        extraPkcs11Config - extra configuration for pkcs11 library
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    PasswordInputCallback callback)
        Create the SignatureTokenConnection, using the provided path for the library and a way of retrieving the password from the user. The default constructor for CallbackPkcs11SignatureToken.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        callback - the callback to enter the pin code / password
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    PasswordInputCallback callback,
                                    String extraPkcs11Config)
        Create the SignatureTokenConnection, using the provided path for the library and a way of retrieving the password from the user. The default constructor for CallbackPkcs11SignatureToken.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        callback - the callback to enter the pin code / password
        extraPkcs11Config - extra configuration for pkcs11 library
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    KeyStore.PasswordProtection password,
                                    int slotId)
        Sometimes, multiple SmartCard reader is connected. To create a connection on a specific one, slotIndex is used. This Create the SignatureTokenConnection, using the provided path for the library and a way of retrieving the password from the user.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        password - the pin code / password to use
        slotId - the slotId to use
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    KeyStore.PasswordProtection password,
                                    int slotId,
                                    String extraPkcs11Config)
        Sometimes, multiple SmartCard reader is connected. To create a connection on a specific one, slotIndex is used. This Create the SignatureTokenConnection, using the provided path for the library and a way of retrieving the password from the user.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        password - the pin code / password to use
        slotId - the slotId to use
        extraPkcs11Config - extra configuration for pkcs11 library
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    PasswordInputCallback callback,
                                    int slotId)
        Sometimes, multiple SmartCard reader is connected. To create a connection on a specific one, slotIndex is used. This create a SignatureTokenConnection and the keys will be accessed using the provided password.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        callback - the callback to enter the pin code / password
        slotId - the slotId to use
      • Pkcs11SignatureToken

        public Pkcs11SignatureToken​(String pkcs11Path,
                                    PasswordInputCallback callback,
                                    int slotId,
                                    String extraPkcs11Config)
        Sometimes, multiple SmartCard reader is connected. To create a connection on a specific one, slotIndex is used. This create a SignatureTokenConnection and the keys will be accessed using the provided password.
        Parameters:
        pkcs11Path - the path for the library (.dll, .so)
        callback - the callback to enter the pin code / password
        slotId - the slotId to use
        extraPkcs11Config - extra configuration for pkcs11 library