public interface ClientIdentityLoader
| Modifier and Type | Field and Description |
|---|---|
static ClientIdentityLoader |
DEFAULT
A default implementation that assumes a file location that must exist.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidLocation(String location) |
KeyPair |
loadClientIdentity(String location,
FilePasswordProvider provider) |
static final ClientIdentityLoader DEFAULT
A default implementation that assumes a file location that must exist.
Note: It calls SecurityUtils.loadKeyPairIdentity(String, InputStream, FilePasswordProvider)
boolean isValidLocation(String location) throws IOException
location - The identity key-pair location - the actual meaning (file, URL, etc.)
depends on the implementation.true if it represents a valid location - the actual meaning of
the validity depends on the implementationIOException - If failed to validate the locationKeyPair loadClientIdentity(String location, FilePasswordProvider provider) throws IOException, GeneralSecurityException
location - The identity key-pair location - the actual meaning (file, URL, etc.)
depends on the implementation.provider - The FilePasswordProvider to consult if the location contains
an encrypted identityKeyPair - null if location is empty
and it is OK that it does not existIOException - If failed to access / process the remote locationGeneralSecurityException - If failed to convert the contents into
a valid identityCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.