Package org.ldaptive.ssl
Class X509CertificateCredentialReader
java.lang.Object
org.ldaptive.ssl.AbstractCredentialReader<X509Certificate>
org.ldaptive.ssl.X509CertificateCredentialReader
- All Implemented Interfaces:
CredentialReader<X509Certificate>
Loads an X.509 certificate credential from a classpath, filepath, or stream resource. Supported certificate formats
include: PEM, DER, and PKCS7.
-
Field Summary
Fields inherited from class org.ldaptive.ssl.AbstractCredentialReader
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread
(InputStream is, String... params) Reads a credential object from an input stream.Methods inherited from class org.ldaptive.ssl.AbstractCredentialReader
getBufferedInputStream, read
-
Constructor Details
-
X509CertificateCredentialReader
public X509CertificateCredentialReader()
-
-
Method Details
-
read
public X509Certificate read(InputStream is, String... params) throws IOException, GeneralSecurityException Description copied from interface:CredentialReader
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.
-