All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.vt.middleware.ldap.ssl.CredentialConfig Maven / Gradle / Ivy

/*
  $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.security.GeneralSecurityException;

/**
 * CredentialConfig provides a base interface for all credential
 * configurations. Since credential configs are invoked via reflection by the
 * PropertyInvoker their method signatures are not important. They only need to
 * be able to create an SSL context initializer once their properties have been
 * set.
 *
 * @author  Middleware Services
 * @version  $Revision: 1106 $ $Date: 2010-01-29 23:34:13 -0500 (Fri, 29 Jan 2010) $
 */
public interface CredentialConfig
{


  /**
   * Creates an SSLContextInitializer using the configured trust
   * and authentication material in this config.
   *
   * @return  SSLContextInitializer
   *
   * @throws  GeneralSecurityException  if the ssl context initializer cannot be
   * created
   */
  SSLContextInitializer createSSLContextInitializer()
    throws GeneralSecurityException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy