ch.qos.logback.core.net.ssl
Class KeyManagerFactoryFactoryBean

java.lang.Object
  extended by ch.qos.logback.core.net.ssl.KeyManagerFactoryFactoryBean

public class KeyManagerFactoryFactoryBean
extends Object

A factory bean for a JSSE KeyManagerFactory.

This object holds the configurable properties of a key manager factory and uses them to create and load a KeyManagerFactory instance.

Author:
Carl Harris

Constructor Summary
KeyManagerFactoryFactoryBean()
           
 
Method Summary
 KeyManagerFactory createKeyManagerFactory()
          Creates a KeyManagerFactory using the receiver's configuration.
 String getAlgorithm()
          Gets the algorithm name for the key manager factory.
 String getProvider()
          Gets the JSSE provider name for the key manager factory.
 void setAlgorithm(String algorithm)
          Sets the algorithm name for the key manager factory.
 void setProvider(String provider)
          Sets the JSSE provider name for the key manager factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyManagerFactoryFactoryBean

public KeyManagerFactoryFactoryBean()
Method Detail

createKeyManagerFactory

public KeyManagerFactory createKeyManagerFactory()
                                          throws NoSuchProviderException,
                                                 NoSuchAlgorithmException
Creates a KeyManagerFactory using the receiver's configuration.

Returns:
factory object
Throws:
NoSuchProviderException - if the provider specified by setProvider(String) is not known to the platform
NoSuchAlgorithmException - if the algorithm specified by setAlgorithm(String) is not known to the specified provider (or to the default platform provider if no provider is specified)

getAlgorithm

public String getAlgorithm()
Gets the algorithm name for the key manager factory.

Returns:
algorithm name (e.g. SunX509); the default algorithm (obtained from KeyManagerFactory.getDefaultAlgorithm()) is returned if no algorithm has been configured

setAlgorithm

public void setAlgorithm(String algorithm)
Sets the algorithm name for the key manager factory.

Parameters:
algorithm - an algorithm name, which must be recognized by the provider specified by setProvider(String) or by the platform's default provider if no provider is specified.

getProvider

public String getProvider()
Gets the JSSE provider name for the key manager factory.

Returns:
provider name

setProvider

public void setProvider(String provider)
Sets the JSSE provider name for the key manager factory.

Parameters:
provider - name of the JSSE provider to utilize in creating the key manager factory


Copyright © 2005-2014 QOS.ch. All Rights Reserved.