Package com.tangosol.net.ssl
Interface PrivateKeyLoader
-
- All Known Implementing Classes:
AbstractPrivateKeyLoader
,URLPrivateKeyLoader
public interface PrivateKeyLoader
A 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 boolean
isEnabled()
default boolean
isRefreshable()
Returntrue
if thePrivateKey
loaded previously by this loader should be refreshed.PrivateKey
load(PasswordProvider password)
Load a namedPrivateKey
.
-
-
-
Method Detail
-
load
PrivateKey load(PasswordProvider password) throws GeneralSecurityException, IOException
Load a namedPrivateKey
.- Parameters:
password
- an optionalPasswordProvider
for encrypted keys- Returns:
- the
PrivateKey
ornull
if no key could be loaded - Throws:
GeneralSecurityException
IOException
-
isEnabled
default boolean isEnabled()
- Returns:
true
if thisPrivateKeyLoader
is enabled, orfalse
ifPrivateKeyLoader
should not be used
-
isRefreshable
default boolean isRefreshable()
Returntrue
if thePrivateKey
loaded previously by this loader should be refreshed.- Returns:
- the default implementation always returns
true
-
-