Package org.ldaptive.ssl
Class KeyStoreCredentialReader
- All Implemented Interfaces:
CredentialReader<KeyStore>
Reads keystore credentials from a classpath, filepath, or stream resource.
-
Field Summary
Fields inherited from class org.ldaptive.ssl.AbstractCredentialReader
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread
(InputStream is, String... params) Reads a keystore from an input stream.Methods inherited from class org.ldaptive.ssl.AbstractCredentialReader
getBufferedInputStream, read
-
Constructor Details
-
KeyStoreCredentialReader
public KeyStoreCredentialReader()
-
-
Method Details
-
read
Reads a keystore from an input stream.- Parameters:
is
- Input stream from which to read keystore.params
- Two optional parameters are supported:- keystore password
- keystore type; defaults to JVM default keystore format if omitted
If only a single parameter is supplied, it is assumed to be the password.
- Returns:
- keystore read from data in stream.
- Throws:
IOException
- On IO errors.GeneralSecurityException
- On errors with the credential data.
-