Package com.tangosol.net.ssl
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 boolean
default boolean
Returntrue
if thePrivateKey
loaded previously by this loader should be refreshed.load
(PasswordProvider password) Load a namedPrivateKey
.
-
Method Details
-
load
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
-