edu.vt.middleware.ldap.ssl.CredentialReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vt-ldap Show documentation
Show all versions of vt-ldap Show documentation
Library for performing common LDAP operations
/*
$Id$
Copyright (C) 2003-2010 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision$
Updated: $Date$
*/
package edu.vt.middleware.ldap.ssl;
import java.io.IOException;
import java.io.InputStream;
import java.security.GeneralSecurityException;
/**
* Reads a credential from an IO source.
*
* @param Type of credential read by this instance.
*
* @author Middleware Services
* @version $Revision: 1106 $ $Date: 2010-01-29 23:34:13 -0500 (Fri, 29 Jan 2010) $
*/
public interface CredentialReader
{
/**
* Reads a credential object from a path.
*
* @param path Path from which to read credential.
* @param params Arbitrary string parameters, e.g. password, needed to read
* the credential.
*
* @return Credential read from data at path.
*
* @throws IOException On IO errors.
* @throws GeneralSecurityException On errors with the credential data.
*/
T read(String path, String... params)
throws IOException, GeneralSecurityException;
/**
* Reads a credential object from an input stream.
*
* @param is Input stream from which to read credential.
* @param params Arbitrary string parameters, e.g. password, needed to read
* the credential.
*
* @return Credential read from data in stream.
*
* @throws IOException On IO errors.
* @throws GeneralSecurityException On errors with the credential data.
*/
T read(InputStream is, String... params)
throws IOException, GeneralSecurityException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy