Package edu.vt.middleware.ldap.ssl
Class X509CertificatesCredentialReader
- java.lang.Object
-
- edu.vt.middleware.ldap.ssl.AbstractCredentialReader<java.security.cert.X509Certificate[]>
-
- edu.vt.middleware.ldap.ssl.X509CertificatesCredentialReader
-
- All Implemented Interfaces:
CredentialReader<java.security.cert.X509Certificate[]>
public class X509CertificatesCredentialReader extends AbstractCredentialReader<java.security.cert.X509Certificate[]>
Loads X.509 certificate credentials from a classpath, filepath, or stream resource. Supported certificate formats include: PEM, DER, and PKCS7.- Version:
- $Revision$
- Author:
- Middleware Services
-
-
Field Summary
-
Fields inherited from class edu.vt.middleware.ldap.ssl.AbstractCredentialReader
CLASSPATH_PREFIX, FILE_PREFIX, logger
-
-
Constructor Summary
Constructors Constructor Description X509CertificatesCredentialReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.X509Certificate[]
read(java.io.InputStream is, java.lang.String... params)
Reads a credential object from an input stream.-
Methods inherited from class edu.vt.middleware.ldap.ssl.AbstractCredentialReader
getBufferedInputStream, read
-
-
-
-
Method Detail
-
read
public java.security.cert.X509Certificate[] read(java.io.InputStream is, java.lang.String... params) throws java.io.IOException, java.security.GeneralSecurityException
Reads a credential object from an input stream.- Specified by:
read
in interfaceCredentialReader<java.security.cert.X509Certificate[]>
- Specified by:
read
in classAbstractCredentialReader<java.security.cert.X509Certificate[]>
- 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.
-
-