Package org.ldaptive.ssl
Interface CredentialReader<T>
-
- Type Parameters:
T
- Type of credential read by this instance.
- All Known Implementing Classes:
AbstractCredentialReader
,KeyStoreCredentialReader
,PrivateKeyCredentialReader
,X509CertificateCredentialReader
,X509CertificatesCredentialReader
public interface CredentialReader<T>
Reads a credential from an IO source.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
read(InputStream is, String... params)
Reads a credential object from an input stream.T
read(String path, String... params)
Reads a credential object from a path.
-
-
-
Method Detail
-
read
T read(String path, String... params) throws IOException, GeneralSecurityException
Reads a credential object from a path.- Parameters:
path
- from which to read credential.params
- Arbitrary string parameters, e.g. password, needed to read the credential.- Returns:
- credential read from data at path.
- Throws:
IOException
- On IO errors.GeneralSecurityException
- On errors with the credential data.
-
read
T read(InputStream is, String... params) throws IOException, GeneralSecurityException
Reads a credential object from an input stream.- Parameters:
is
- input stream from which to read credential.params
- Arbitrary string parameters, e.g. password, needed to read the credential.- Returns:
- credential read from data in stream.
- Throws:
IOException
- On IO errors.GeneralSecurityException
- On errors with the credential data.
-
-