Package com.tangosol.net.ssl
Interface PrivateKeyLoader
-
- All Known Implementing Classes:
AbstractPrivateKeyLoader,URLPrivateKeyLoader
public interface PrivateKeyLoaderA class that can create aPrivateKey.- Since:
- 22.06
- Author:
- Jonathan Knight 2020.01.25
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanisEnabled()default booleanisRefreshable()Returntrueif thePrivateKeyloaded previously by this loader should be refreshed.PrivateKeyload(PasswordProvider password)Load a namedPrivateKey.
-
-
-
Method Detail
-
load
PrivateKey load(PasswordProvider password) throws GeneralSecurityException, IOException
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
-
-