Interface ReloadablePkiCredential
- All Superinterfaces:
PkiCredential
- All Known Implementing Classes:
AbstractReloadablePkiCredential, KeyStoreCredential, ManagedPkiCredential, Pkcs11Credential
An interface for credentials that are "testable" and "reloadable".
- Author:
- Martin Lindström (martin@idsec.se), Stefan Santesson (stefan@idsec.se)
-
Nested Class Summary
Nested classes/interfaces inherited from interface PkiCredential
PkiCredential.Metadata -
Method Summary
Modifier and TypeMethodDescriptionA credential may be monitored to ensure that it is functional.voidreload()Some implementations of key pairs, such as HSM-based, may need to be reloaded.Methods inherited from interface PkiCredential
destroy, getCertificate, getCertificateChain, getMetadata, getName, getPrivateKey, getPublicKey, isHardwareCredential, transform
-
Method Details
-
getTestFunction
A credential may be monitored to ensure that it is functional. This can be useful when using, for example, credentials residing on hardware devices where the connection may be lost. If a credential implementation should be "testable" it must return a function for testing itself. This function (Supplier) returns anExceptionfor test failures andnullfor success.A credential that returns a function should also implement the
reload()method.- Returns:
- a function for testing the credential, or
nullif no test function is available
-
reload
-