org.ldaptive.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: 2885 $ $Date: 2014-02-05 16:28:49 -0500 (Wed, 05 Feb 2014) $
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 - 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-2017 Virginia Tech. All Rights Reserved.