| Modifier and Type | Class and Description |
|---|---|
| private static class | ConnectorBootstrap.
This JMXAuthenticator wraps the JMXPluggableAuthenticator and verifies that at least one of the principal names contained in the authenticated Subject is present in the access file. |
| public static interface | ConnectorBootstrap.
Default values for JMX configuration properties. |
| private static class | |
| private static class | |
| private static class | ConnectorBootstrap.
JMXConnectorServer associated data. |
| private static class | ConnectorBootstrap.
Prevents our RMI server objects from keeping the JVM alive. |
| public static interface | ConnectorBootstrap.
Names of JMX configuration properties. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final System. | |
| private static Registry |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static SslRMIServerSocketFactory | createSslRMIServerSocketFactory(String sslConfigFileName, String[] enabledCipherSuites, String[] enabledProtocols, boolean sslNeedClientAuth, String bindAddress)
|
| private static ConnectorBootstrap. | exportMBeanServer(MBeanServer mbs, int port, int rmiPort, boolean useSsl, boolean useRegistrySsl, String sslConfigFileName, String[] enabledCipherSuites, String[] enabledProtocols, boolean sslNeedClientAuth, boolean useAuthentication, String loginConfigName, String passwordFileName, boolean shouldHashPasswords, String accessFileName, String bindAddress, String jmxRmiFilter)
|
| private static String | Returns: ${JRE}/conf/management/${basename}basename (with extension) of the default file. basename)Compute the full path name for a default file. |
| public static synchronized JMXConnectorServer | |
| public static synchronized JMXConnectorServer | |
| public static JMXConnectorServer | |
| public static synchronized JMXConnectorServer | startRemoteConnectorServer(String portStr, Properties props)
Initializes and starts a JMX Connector Server for remote monitoring and management. |
| public static void |
| logger | back to summary |
|---|---|
| private static final System. | |
| registry | back to summary |
|---|---|
| private static Registry registry | |
| ConnectorBootstrap | back to summary |
|---|---|
| private ConnectorBootstrap() This class cannot be instantiated. | |
| checkAccessFile | back to summary |
|---|---|
| private static void checkAccessFile(String accessFileName) | |
| checkPasswordFile | back to summary |
|---|---|
| private static void checkPasswordFile(String passwordFileName) | |
| checkRestrictedFile | back to summary |
|---|---|
| private static void checkRestrictedFile(String restrictedFileName) | |
| config | back to summary |
|---|---|
| private static void config(String func, String msg) | |
| config | back to summary |
|---|---|
| private static void config(String func, Throwable t) | |
| config | back to summary |
|---|---|
| private static void config(String func, String msg, Throwable t) | |
| createSslRMIServerSocketFactory | back to summary |
|---|---|
| private static SslRMIServerSocketFactory createSslRMIServerSocketFactory(String sslConfigFileName, String[] enabledCipherSuites, String[] enabledProtocols, boolean sslNeedClientAuth, String bindAddress) | |
| exportMBeanServer | back to summary |
|---|---|
| private static ConnectorBootstrap. | |
| getDefaultFileName | back to summary |
|---|---|
| private static String getDefaultFileName(String basename) Compute the full path name for a default file. | |
| initialize | back to summary |
|---|---|
| public static synchronized JMXConnectorServer initialize() Initializes and starts the JMX Connector Server.
If the com.sun.management.jmxremote.port property is not defined,
simply returns. Otherwise, attempts to load the config file, and
then calls | |
| initialize | back to summary |
|---|---|
| public static synchronized JMXConnectorServer initialize(String portStr, Properties props) This method is used by some jtreg tests. | |
| startLocalConnectorServer | back to summary |
|---|---|
| public static JMXConnectorServer startLocalConnectorServer() | |
| startRemoteConnectorServer | back to summary |
|---|---|
| public static synchronized JMXConnectorServer startRemoteConnectorServer(String portStr, Properties props) Initializes and starts a JMX Connector Server for remote monitoring and management. | |
| unexportRegistry | back to summary |
|---|---|
| public static void unexportRegistry() | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Map | |
| private final Properties |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Subject | authenticate(Object credentials)
Implements javax. Authenticates the |
| private void | |
| private static Properties |
| accessFile | back to summary |
|---|---|
| private final String accessFile | |
| environment | back to summary |
|---|---|
| private final Map<String, Object> environment | |
| properties | back to summary |
|---|---|
| private final Properties properties | |
| AccessFileCheckerAuthenticator | back to summary |
|---|---|
| public AccessFileCheckerAuthenticator(Map<String, Object> env) throws IOException | |
| authenticate | back to summary |
|---|---|
| public Subject authenticate(Object credentials) Implements javax. Doc from javax. Authenticates the | |
| checkAccessFileEntries | back to summary |
|---|---|
| private void checkAccessFileEntries(Subject subject) | |
| propertiesFromFile | back to summary |
|---|---|
| private static Properties propertiesFromFile(String fname) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| ACCESS_FILE_NAME | back to summary |
|---|---|
| public static final String ACCESS_FILE_NAME | |
| CONFIG_FILE_NAME | back to summary |
|---|---|
| public static final String CONFIG_FILE_NAME | |
| HASH_PASSWORDS | back to summary |
|---|---|
| public static final String HASH_PASSWORDS | |
| PASSWORD_FILE_NAME | back to summary |
|---|---|
| public static final String PASSWORD_FILE_NAME | |
| PORT | back to summary |
|---|---|
| public static final String PORT | |
| SSL_NEED_CLIENT_AUTH | back to summary |
|---|---|
| public static final String SSL_NEED_CLIENT_AUTH | |
| USE_AUTHENTICATION | back to summary |
|---|---|
| public static final String USE_AUTHENTICATION | |
| USE_LOCAL_ONLY | back to summary |
|---|---|
| public static final String USE_LOCAL_ONLY | |
| USE_REGISTRY_SSL | back to summary |
|---|---|
| public static final String USE_REGISTRY_SSL | |
| USE_SSL | back to summary |
|---|---|
| public static final String USE_SSL | |
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ServerSocket | createServerSocket(int port)
Implements java. Create a server socket on the specified port (port 0 indicates an anonymous port). |
| bindAddress | back to summary |
|---|---|
| private final String bindAddress | |
| HostAwareSocketFactory | back to summary |
|---|---|
| private HostAwareSocketFactory(String bindAddress) | |
| createServerSocket | back to summary |
|---|---|
| public ServerSocket createServerSocket(int port) throws IOException Implements java. Doc from java. Create a server socket on the specified port (port 0 indicates an anonymous port).
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final SSLContext |
| Access | Constructor and Description |
|---|---|
| private | HostAwareSslSocketFactory(String[] enabledCipherSuites, String[] enabledProtocols, boolean sslNeedClientAuth, String bindAddress)
|
| private | HostAwareSslSocketFactory(SSLContext ctx, String[] enabledCipherSuites, String[] enabledProtocols, boolean sslNeedClientAuth, String bindAddress)
|
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public ServerSocket | createServerSocket(int port)
Overrides javax. Implements java. Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters. |
| bindAddress | back to summary |
|---|---|
| private final String bindAddress | |
| context | back to summary |
|---|---|
| private final SSLContext context | |
| HostAwareSslSocketFactory | back to summary |
|---|---|
| private HostAwareSslSocketFactory(String[] enabledCipherSuites, String[] enabledProtocols, boolean sslNeedClientAuth, String bindAddress) throws IllegalArgumentException | |
| HostAwareSslSocketFactory | back to summary |
|---|---|
| private HostAwareSslSocketFactory(SSLContext ctx, String[] enabledCipherSuites, String[] enabledProtocols, boolean sslNeedClientAuth, String bindAddress) throws IllegalArgumentException | |
| checkValues | back to summary |
|---|---|
| private static void checkValues(SSLContext context, String[] enabledCipherSuites, String[] enabledProtocols) throws IllegalArgumentException | |
| createServerSocket | back to summary |
|---|---|
| public ServerSocket createServerSocket(int port) throws IOException Overrides javax. Implements java. Doc from javax. Creates a server socket that accepts SSL connections configured according to this factory's SSL socket configuration parameters.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv JMXConnectorServer | |
| pack-priv JMXServiceURL |
| Access | Constructor and Description |
|---|---|
| public |
| jmxConnectorServer | back to summary |
|---|---|
| pack-priv JMXConnectorServer jmxConnectorServer | |
| jmxRemoteURL | back to summary |
|---|---|
| pack-priv JMXServiceURL jmxRemoteURL | |
| JMXConnectorServerData | back to summary |
|---|---|
| public JMXConnectorServerData(JMXConnectorServer jmxConnectorServer, JMXServiceURL jmxRemoteURL) | |
Prevents our RMI server objects from keeping the JVM alive.
We use a private interface in Sun's JMX Remote API implementation that allows us to specify how to export RMI objects. We do so using UnicastServerRef, a class in Sun's RMI implementation. This is all non-portable, of course, so this is only valid because we are inside Sun's JRE.
Objects are exported using UnicastServerRef#exportObject(Remote, Object, boolean). The
boolean parameter is called permanent and means
both that the object is not eligible for Distributed Garbage
Collection, and that its continued existence will not prevent
the JVM from exiting. It is the latter semantics we want (we
already have the former because of the way the JMX Remote API
works). Hence the somewhat misleading name of this class.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Remote |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Remote | exportObject(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, ObjectInputFilter filter)
Implements com.
|
| public boolean | unexportObject(Remote obj, boolean force)
Implements com.
|
| firstExported | back to summary |
|---|---|
| pack-priv Remote firstExported | |
| PermanentExporter | back to summary |
|---|---|
| private PermanentExporter() | |
| exportObject | back to summary |
|---|---|
| public Remote exportObject(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, ObjectInputFilter filter) throws RemoteException Implements com. | |
| unexportObject | back to summary |
|---|---|
| public boolean unexportObject(Remote obj, boolean force) throws NoSuchObjectException Implements com. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String |
| ACCESS_FILE_NAME | back to summary |
|---|---|
| public static final String ACCESS_FILE_NAME | |
| CONFIG_FILE_NAME | back to summary |
|---|---|
| public static final String CONFIG_FILE_NAME | |
| HASH_PASSWORDS | back to summary |
|---|---|
| public static final String HASH_PASSWORDS | |
| HOST | back to summary |
|---|---|
| public static final String HOST | |
| LOCAL_PORT | back to summary |
|---|---|
| public static final String LOCAL_PORT | |
| LOGIN_CONFIG_NAME | back to summary |
|---|---|
| public static final String LOGIN_CONFIG_NAME | |
| PASSWORD_FILE_NAME | back to summary |
|---|---|
| public static final String PASSWORD_FILE_NAME | |
| PORT | back to summary |
|---|---|
| public static final String PORT | |
| RMI_PORT | back to summary |
|---|---|
| public static final String RMI_PORT | |
| SERIAL_FILTER_PATTERN | back to summary |
|---|---|
| public static final String SERIAL_FILTER_PATTERN | |
| SSL_CONFIG_FILE_NAME | back to summary |
|---|---|
| public static final String SSL_CONFIG_FILE_NAME | |
| SSL_ENABLED_CIPHER_SUITES | back to summary |
|---|---|
| public static final String SSL_ENABLED_CIPHER_SUITES | |
| SSL_ENABLED_PROTOCOLS | back to summary |
|---|---|
| public static final String SSL_ENABLED_PROTOCOLS | |
| SSL_NEED_CLIENT_AUTH | back to summary |
|---|---|
| public static final String SSL_NEED_CLIENT_AUTH | |
| USE_AUTHENTICATION | back to summary |
|---|---|
| public static final String USE_AUTHENTICATION | |
| USE_LOCAL_ONLY | back to summary |
|---|---|
| public static final String USE_LOCAL_ONLY | |
| USE_REGISTRY_SSL | back to summary |
|---|---|
| public static final String USE_REGISTRY_SSL | |
| USE_SSL | back to summary |
|---|---|
| public static final String USE_SSL | |
| Modifier and Type | Field and Description |
|---|---|
| private final SSLContext | |
| private static SSLSocketFactory | |
| private final String[] | |
| private final String[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private | SslServerSocket(int port, SSLContext ctx, String[] enabledCipherSuites, String[] enabledProtocols, boolean needClientAuth)
|
| private | SslServerSocket(int port, int backlog, InetAddress bindAddr, SSLContext ctx, String[] enabledCipherSuites, String[] enabledProtocols, boolean needClientAuth)
|
| Modifier and Type | Method and Description |
|---|---|
| public Socket | accept()
Overrides java. Listens for a connection to be made to this socket and accepts it. |
| private static synchronized SSLSocketFactory |
| context | back to summary |
|---|---|
| private final SSLContext context | |
| defaultSSLSocketFactory | back to summary |
|---|---|
| private static SSLSocketFactory defaultSSLSocketFactory | |
| enabledCipherSuites | back to summary |
|---|---|
| private final String[] enabledCipherSuites | |
| enabledProtocols | back to summary |
|---|---|
| private final String[] enabledProtocols | |
| needClientAuth | back to summary |
|---|---|
| private final boolean needClientAuth | |
| SslServerSocket | back to summary |
|---|---|
| private SslServerSocket(int port, SSLContext ctx, String[] enabledCipherSuites, String[] enabledProtocols, boolean needClientAuth) throws IOException | |
| SslServerSocket | back to summary |
|---|---|
| private SslServerSocket(int port, int backlog, InetAddress bindAddr, SSLContext ctx, String[] enabledCipherSuites, String[] enabledProtocols, boolean needClientAuth) throws IOException | |
| accept | back to summary |
|---|---|
| public Socket accept() throws IOException Overrides java. Doc from java. Listens for a connection to be made to this socket and accepts it. The method blocks until a connection is made. This method is interruptible in the following circumstances:
| |
| getDefaultSSLSocketFactory | back to summary |
|---|---|
| private static synchronized SSLSocketFactory getDefaultSSLSocketFactory() | |