Class Pkcs11KeyStoreReloader
java.lang.Object
se.swedenconnect.security.credential.pkcs11.Pkcs11KeyStoreReloader
- All Implemented Interfaces:
KeyStoreReloader
The default implementation of the
KeyStoreReloader
interface.- Author:
- Martin Lindström
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pkcs11KeyStoreReloader
public Pkcs11KeyStoreReloader(@Nonnull char[] pin) Constructor assigning the PIN code.- Parameters:
pin
- the HSM PIN
-
-
Method Details
-
reload
Reloads a PKCS#11KeyStore
.- Specified by:
reload
in interfaceKeyStoreReloader
- Parameters:
keyStore
- the PKCS#11KeyStore
- Throws:
KeyStoreException
- for error reloading the keystore
-
destroy
@PreDestroy public void destroy()Method that clears the PIN-code. Will be automatically invoked if the instance is a bean controlled by a framework that manages bean (Spring, Quarkus, ...).
-