T - Type of credential read by this instance.public interface CredentialReader<T>
| Modifier and Type | Method and Description |
|---|---|
T |
read(java.io.InputStream is,
java.lang.String... params)
Reads a credential object from an input stream.
|
T |
read(java.lang.String path,
java.lang.String... params)
Reads a credential object from a path.
|
T read(java.lang.String path, java.lang.String... params) throws java.io.IOException, java.security.GeneralSecurityException
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.T read(java.io.InputStream is, java.lang.String... params) throws java.io.IOException, java.security.GeneralSecurityException
is - input stream 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.