|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.corba.security.config.ssl.SSLConfig
public class SSLConfig
An active SSL configuration. The SSL configuration identifies the KeystoreManager instance to be used for SSL connections, as well as the specifics of the certificates to be used for the connections. The socket factories attached to the CORBA ORBs used the SSLConfig to retrieve SocketFactory instances for creating the secure sockets.
Constructor Summary | |
---|---|
SSLConfig()
Default GBean constructor. |
|
SSLConfig(KeystoreManager keystoreManager)
"Normal" constructor for config items. |
Method Summary | |
---|---|
SSLSocketFactory |
createSSLFactory(ClassLoader loader)
Create an SSLServerSocketFactory instance for creating server-side SSL connections. |
SSLServerSocketFactory |
createSSLServerFactory(ClassLoader loader)
Create an SSLSocketFactory instance for creating client-side SSL connections. |
String |
getAlgorithm()
The encryption algorithm to use. |
String |
getKeyAlias()
Retrieve the key alias name to use. |
String |
getKeyStore()
Retrieve the name of the keystore. |
String |
getProtocol()
Get the protocol to be used by this SSL configuration. |
String |
getProvider()
Retrieve the encryption provider to be used for these connnections. |
String |
getTrustStore()
Retrieve the in-use truststore name. |
void |
setAlgorithm(String algorithm)
Algorithm to use. |
void |
setKeyAlias(String keyAlias)
Set the key alias to be used for the connection. |
void |
setKeyStore(String keyStore)
Set the name of the keystore to be used for this connection. |
void |
setProtocol(String protocol)
Set the protocol to be used by this configuration. |
void |
setProvider(String provider)
Set a new encryption provider for the SSL access. |
void |
setTrustStore(String trustStore)
Set the name of the truststore to be used for connections. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SSLConfig()
public SSLConfig(KeystoreManager keystoreManager)
keystoreManager
- The keystoreManager instance used to create SSL sockets
for this configuration.Method Detail |
---|
public SSLSocketFactory createSSLFactory(ClassLoader loader) throws KeystoreException
loader
- The class loader used to resolve classes required
by the KeystoreManager.
KeystoreException
- When a problem occurs while creating the factory.public SSLServerSocketFactory createSSLServerFactory(ClassLoader loader) throws KeystoreException
loader
- The class loader used to resolve classes required
by the KeystoreManager.
KeystoreException
- When a problem occurs while creating the factory.public String getProtocol()
public void setProtocol(String protocol)
protocol
- The new protocol name.public String getProvider()
public void setProvider(String provider)
provider
- The new provider name.public String getAlgorithm()
public void setAlgorithm(String algorithm)
algorithm
- the algorithm to use, or "Default" to use the default from KeyManagerFactory.getDefaultAlgorithm()
public void setKeyStore(String keyStore)
keyStore
- The key store String name.public String getKeyStore()
public void setTrustStore(String trustStore)
trustStore
- The new trustStore name.public String getTrustStore()
public void setKeyAlias(String keyAlias)
keyAlias
- The String name of the key alias.public String getKeyAlias()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |