org.apache.geronimo.jmxremoting
Class JMXSecureConnector

java.lang.Object
  extended by org.apache.geronimo.jmxremoting.JMXConnector
      extended by org.apache.geronimo.jmxremoting.JMXSecureConnector
All Implemented Interfaces:
GBeanLifecycle, JMXConnectorInfo

public class JMXSecureConnector
extends JMXConnector

A secure (SSL/TLS) connector that supports the server side of JSR 160 JMX Remoting.


Field Summary
static GBeanInfo GBEAN_INFO
           
 
Fields inherited from class org.apache.geronimo.jmxremoting.JMXConnector
applicationConfigName, classLoader, host, jmxServiceURL, log, mbeanServer, port, protocol, server, urlPath
 
Constructor Summary
JMXSecureConnector(MBeanServerReference mbeanServerReference, String objectName, ClassLoader classLoader)
           
JMXSecureConnector(MBeanServer mbeanServer, String objectName, ClassLoader classLoader)
           
 
Method Summary
 void doStart()
          Starts the GBean.
 String getAlgorithm()
           
static GBeanInfo getGBeanInfo()
           
 String getKeyAlias()
           
 String getKeyStore()
           
 KeystoreManager getKeystoreManager()
           
 String getSecureProtocol()
           
 String getTrustStore()
           
 boolean isClientAuth()
           
 void setAlgorithm(String algorithm)
          Algorithm to use.
 void setClientAuth(boolean clientAuth)
           
 void setKeyAlias(String keyAlias)
           
 void setKeyStore(String keyStore)
           
 void setKeystoreManager(KeystoreManager keystoreManager)
           
 void setSecureProtocol(String secureProtocol)
           
 void setTrustStore(String trustStore)
           
 
Methods inherited from class org.apache.geronimo.jmxremoting.JMXConnector
doFail, doStop, getApplicationConfigName, getHost, getListenAddress, getPort, getProtocol, getUrlPath, setApplicationConfigName, setHost, setPort, setProtocol, setUrlPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final GBeanInfo GBEAN_INFO
Constructor Detail

JMXSecureConnector

public JMXSecureConnector(MBeanServerReference mbeanServerReference,
                          String objectName,
                          ClassLoader classLoader)

JMXSecureConnector

public JMXSecureConnector(MBeanServer mbeanServer,
                          String objectName,
                          ClassLoader classLoader)
Method Detail

setKeystoreManager

public void setKeystoreManager(KeystoreManager keystoreManager)

getKeystoreManager

public KeystoreManager getKeystoreManager()

getKeyStore

public String getKeyStore()

setKeyStore

public void setKeyStore(String keyStore)

getTrustStore

public String getTrustStore()

setTrustStore

public void setTrustStore(String trustStore)

getKeyAlias

public String getKeyAlias()

setKeyAlias

public void setKeyAlias(String keyAlias)

getAlgorithm

public String getAlgorithm()

setAlgorithm

public void setAlgorithm(String algorithm)
Algorithm to use. As different JVMs have different implementations available, the default algorithm can be used by supplying the value "Default".

Parameters:
algorithm - the algorithm to use, or "Default" to use the default from KeyManagerFactory.getDefaultAlgorithm()

getSecureProtocol

public String getSecureProtocol()

setSecureProtocol

public void setSecureProtocol(String secureProtocol)

setClientAuth

public void setClientAuth(boolean clientAuth)

isClientAuth

public boolean isClientAuth()

doStart

public void doStart()
             throws Exception
Description copied from interface: GBeanLifecycle
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Specified by:
doStart in interface GBeanLifecycle
Overrides:
doStart in class JMXConnector
Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

getGBeanInfo

public static GBeanInfo getGBeanInfo()


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.