edu.vt.middleware.ldap.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.

Version:
$Revision: 1106 $ $Date: 2010-01-29 23:34:13 -0500 (Fri, 29 Jan 2010) $
Author:
Middleware Services

Method Summary
 T read(InputStream is, String... params)
          Reads a credential object from an input stream.
 T read(String path, String... params)
          Reads a credential object from a path.
 

Method Detail

read

T read(String path,
       String... params)
       throws IOException,
              GeneralSecurityException
Reads a credential object from a path.

Parameters:
path - 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:
IOException - On IO errors.
GeneralSecurityException - On errors with the credential data.

read

T 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-2010 Virginia Tech. All Rights Reserved.