T - Type of credential read by this instance.public abstract class AbstractCredentialReader<T> extends java.lang.Object implements CredentialReader<T>
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
Logger for this class.
|
| Constructor and Description |
|---|
AbstractCredentialReader() |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.InputStream |
getBufferedInputStream(java.io.InputStream is)
Gets a buffered input stream from the given input stream.
|
T |
read(java.lang.String path,
java.lang.String... params)
Reads a credential object from a path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadpublic T read(java.lang.String path, java.lang.String... params) throws java.io.IOException, java.security.GeneralSecurityException
CredentialReaderread in interface CredentialReader<T>path - from which to read credential.params - Arbitrary string parameters, e.g. password, needed to read the credential.java.io.IOException - On IO errors.java.security.GeneralSecurityException - On errors with the credential data.protected java.io.InputStream getBufferedInputStream(java.io.InputStream is)
is - input stream from which to create buffered instance.