edu.vt.middleware.ldap.ssl
Class X509CertificateCredentialReader

java.lang.Object
  extended by edu.vt.middleware.ldap.ssl.AbstractCredentialReader<X509Certificate>
      extended by edu.vt.middleware.ldap.ssl.X509CertificateCredentialReader
All Implemented Interfaces:
CredentialReader<X509Certificate>

public class X509CertificateCredentialReader
extends AbstractCredentialReader<X509Certificate>

Loads an X.509 certificate credential 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
X509CertificateCredentialReader()
           
 
Method Summary
 X509Certificate read(InputStream is, String... params)
          Reads a credential object from an input stream.
 
Methods inherited from class edu.vt.middleware.ldap.ssl.AbstractCredentialReader
getBufferedInputStream, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509CertificateCredentialReader

public X509CertificateCredentialReader()
Method Detail

read

public X509Certificate read(InputStream is,
                            String... params)
                     throws IOException,
                            GeneralSecurityException
Reads a credential object from an input stream.

Specified by:
read in interface CredentialReader<X509Certificate>
Specified by:
read in class AbstractCredentialReader<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:
IOException - On IO errors.
GeneralSecurityException - On errors with the credential data.


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