org.ldaptive.ssl
Class X509CertificatesCredentialReader

java.lang.Object
  extended by org.ldaptive.ssl.AbstractCredentialReader<X509Certificate[]>
      extended by org.ldaptive.ssl.X509CertificatesCredentialReader
All Implemented Interfaces:
CredentialReader<X509Certificate[]>

public class X509CertificatesCredentialReader
extends AbstractCredentialReader<X509Certificate[]>

Loads X.509 certificate credentials from a classpath, filepath, or stream resource. Supported certificate formats include: PEM, DER, and PKCS7.

Version:
$Revision: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
Author:
Middleware Services

Field Summary
 
Fields inherited from class org.ldaptive.ssl.AbstractCredentialReader
logger
 
Constructor Summary
X509CertificatesCredentialReader()
           
 
Method Summary
 X509Certificate[] read(InputStream is, String... params)
          Reads a credential object from an input stream.
 
Methods inherited from class org.ldaptive.ssl.AbstractCredentialReader
getBufferedInputStream, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509CertificatesCredentialReader

public X509CertificatesCredentialReader()
Method Detail

read

public X509Certificate[] 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.


Copyright © 2003-2015 Virginia Tech. All Rights Reserved.