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.- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tread(java.io.InputStream is, java.lang.String... params)Reads a credential object from an input stream.Tread(java.lang.String path, java.lang.String... params)Reads a credential object from a path.
-
-
-
Method Detail
-
read
T read(java.lang.String path, java.lang.String... params) throws java.io.IOException, java.security.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:
java.io.IOException- On IO errors.java.security.GeneralSecurityException- On errors with the credential data.
-
read
T read(java.io.InputStream is, java.lang.String... params) throws java.io.IOException, java.security.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:
java.io.IOException- On IO errors.java.security.GeneralSecurityException- On errors with the credential data.
-
-