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
-
Method Details
-
read
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
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.
-