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