org.norther.tammi.core.net
Interface CommonSecureFactory

All Superinterfaces:
CommonFactory, ObjectFactory
All Known Subinterfaces:
SecureServerChannelFactory, SecureServerSocketFactory, SecureSocketFactory
All Known Implementing Classes:
AbstractCommonSecureFactory, AbstractSecureSocketFactory, DefaultSecureServerChannelFactory, DefaultSecureServerSocketFactory, DefaultSecureSocketFactory

public interface CommonSecureFactory
extends CommonFactory

An interface to common secure network resource factories.

Author:
Ilkka Priha

Field Summary
static String DEFAULT_SSL_PROTOCOL
          The default secure socket protocol.
 
Method Summary
 String getDefaultAlias()
          Gets the default key store alias.
 String[] getEnabledCipherSuites(String alias)
          Gets the enabled cipher suites for the specified key store alias.
 String getKeyManagerAlgorithm()
          Gets the key manager algorithm.
 String getKeyManagerProvider()
          Gets the key manager provider.
 ObjectName getKeyStoreLoaderName()
          Gets the key store loader.
 String getSecureSocketProtocol()
          Gets the protocol.
 String getSecureSocketProvider()
          Gets the socket provider.
 String[] getSupportedCipherSuites(String alias)
          Gets the supported cipher suites for the specified key store alias.
 String getTrustManagerAlgorithm()
          Gets the trust manager algorithm.
 String getTrustManagerProvider()
          Gets the trust manager provider.
 ObjectName getTrustStoreLoaderName()
          Gets the trust store loader.
 void setDefaultAlias(String alias)
          Sets the default key store alias.
 void setDefaultPassword(String pswd)
          Sets the password of the default key store alias.
 void setKeyManagerAlgorithm(String algorithm)
          Sets the key manager algorithm.
 void setKeyManagerProvider(String provider)
          Sets the key manager provider.
 void setKeyStoreLoaderName(ObjectName name)
          Sets the key store loader.
 void setSecureSocketProtocol(String protocol)
          Sets the protocol.
 void setSecureSocketProvider(String provider)
          Sets the socket provider.
 void setTrustManagerAlgorithm(String algorithm)
          Sets the trust manager algorithm.
 void setTrustManagerProvider(String provider)
          Sets the trust manager provider.
 void setTrustStoreLoaderName(ObjectName name)
          Sets the trust store loader.
 
Methods inherited from interface org.norther.tammi.core.net.CommonFactory
getSoTimeout, isReuseAddress, isSecure, setReuseAddress, setSoTimeout
 
Methods inherited from interface org.norther.tammi.core.base.ObjectFactory
getInstance, getInstance, getInstance, getInstance, isLoaderSupported
 

Field Detail

DEFAULT_SSL_PROTOCOL

static final String DEFAULT_SSL_PROTOCOL
The default secure socket protocol.

See Also:
Constant Field Values
Method Detail

getDefaultAlias

String getDefaultAlias()
Gets the default key store alias.

Returns:
the alias or null.

setDefaultAlias

void setDefaultAlias(String alias)
Sets the default key store alias.

Parameters:
alias - the alias.

setDefaultPassword

void setDefaultPassword(String pswd)
Sets the password of the default key store alias.

Parameters:
pswd - the password.

getEnabledCipherSuites

String[] getEnabledCipherSuites(String alias)
Gets the enabled cipher suites for the specified key store alias.

Parameters:
alias - the alias.
Returns:
an array of cipher suite names.

getSupportedCipherSuites

String[] getSupportedCipherSuites(String alias)
Gets the supported cipher suites for the specified key store alias.

Parameters:
alias - the alias.
Returns:
an array of cipher suite names.

getKeyStoreLoaderName

ObjectName getKeyStoreLoaderName()
Gets the key store loader.

Returns:
the name of the loader or a query.

setKeyStoreLoaderName

void setKeyStoreLoaderName(ObjectName name)
Sets the key store loader.

Parameters:
name - the name of the loader or a query.

getKeyManagerAlgorithm

String getKeyManagerAlgorithm()
Gets the key manager algorithm.

Returns:
the algorithm.

setKeyManagerAlgorithm

void setKeyManagerAlgorithm(String algorithm)
Sets the key manager algorithm.

Parameters:
algorithm - the algorithm.

getKeyManagerProvider

String getKeyManagerProvider()
Gets the key manager provider.

Returns:
the provider.

setKeyManagerProvider

void setKeyManagerProvider(String provider)
Sets the key manager provider.

Parameters:
provider - the provider.

getTrustStoreLoaderName

ObjectName getTrustStoreLoaderName()
Gets the trust store loader.

Returns:
the name of the loader or a query.

setTrustStoreLoaderName

void setTrustStoreLoaderName(ObjectName name)
Sets the trust store loader.

Parameters:
name - the name of the loader or a query.

getTrustManagerAlgorithm

String getTrustManagerAlgorithm()
Gets the trust manager algorithm.

Returns:
the algorithm.

setTrustManagerAlgorithm

void setTrustManagerAlgorithm(String algorithm)
Sets the trust manager algorithm.

Parameters:
algorithm - the algorithm.

getTrustManagerProvider

String getTrustManagerProvider()
Gets the trust manager provider.

Returns:
the provider.

setTrustManagerProvider

void setTrustManagerProvider(String provider)
Sets the trust manager provider.

Parameters:
provider - the provider.

getSecureSocketProtocol

String getSecureSocketProtocol()
Gets the protocol.

Returns:
the protocol.

setSecureSocketProtocol

void setSecureSocketProtocol(String protocol)
Sets the protocol.

Parameters:
protocol - the protocol.

getSecureSocketProvider

String getSecureSocketProvider()
Gets the socket provider.

Returns:
the socket provider.

setSecureSocketProvider

void setSecureSocketProvider(String provider)
Sets the socket provider.

Parameters:
provider - the socket provider.


Copyright © 2004 The Norther Organization. All rights reserved.