Interface PrivateKeyLoader
- All Known Implementing Classes:
AbstractPrivateKeyLoader,URLPrivateKeyLoader
public interface PrivateKeyLoader
A class that can create a
PrivateKey.- Since:
- 22.06
- Author:
- Jonathan Knight 2020.01.25
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleandefault booleanReturntrueif thePrivateKeyloaded previously by this loader should be refreshed.load(PasswordProvider password) Load a namedPrivateKey.
-
Method Details
-
load
Load a namedPrivateKey.- Parameters:
password- an optionalPasswordProviderfor encrypted keys- Returns:
- the
PrivateKeyornullif no key could be loaded - Throws:
GeneralSecurityExceptionIOException
-
isEnabled
default boolean isEnabled()- Returns:
trueif thisPrivateKeyLoaderis enabled, orfalseifPrivateKeyLoadershould not be used
-
isRefreshable
default boolean isRefreshable()Returntrueif thePrivateKeyloaded previously by this loader should be refreshed.- Returns:
- the default implementation always returns
true
-