<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc (build 1.7.0) on Thu Jan 10 16:02:49 EST 2008 --> <TITLE> AbstractConnectionManager (MX4J API) </TITLE> <META NAME="date" CONTENT="2008-01-10"> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="AbstractConnectionManager (MX4J API)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <!-- ========= START OF TOP NAVBAR ======= --> <A NAME="navbar_top"><!-- --></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractConnectionManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../mx4j/tools/remote/AbstractConnection.html" title="class in mx4j.tools.remote"><B>PREV CLASS</B></A> <A HREF="../../../mx4j/tools/remote/AbstractJMXConnector.html" title="class in mx4j.tools.remote"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?mx4j/tools/remote/AbstractConnectionManager.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractConnectionManager.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <!-- ========= END OF TOP NAVBAR ========= --> <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> mx4j.tools.remote</FONT> <BR> Class AbstractConnectionManager</H2> <PRE> java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>mx4j.tools.remote.AbstractConnectionManager</B> </PRE> <DL> <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../mx4j/tools/remote/ConnectionManager.html" title="interface in mx4j.tools.remote">ConnectionManager</A></DD> </DL> <DL> <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../mx4j/tools/remote/http/HTTPConnectionManager.html" title="class in mx4j.tools.remote.http">HTTPConnectionManager</A></DD> </DL> <HR> <DL> <DT><PRE>public abstract class <B>AbstractConnectionManager</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../mx4j/tools/remote/ConnectionManager.html" title="interface in mx4j.tools.remote">ConnectionManager</A></DL> </PRE> <P> Implementation of the ConnectionManager interface that implements emission of connection notifications, authentication, and proper closing of connections. <P> <P> <DL> <DT><B>Version:</B></DT> <DD>$Revision: 1.7 $</DD> </DL> <HR> <P> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected </CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#AbstractConnectionManager(mx4j.tools.remote.AbstractJMXConnectorServer, java.util.Map)">AbstractConnectionManager</A></B>(<A HREF="../../../mx4j/tools/remote/AbstractJMXConnectorServer.html" title="class in mx4j.tools.remote">AbstractJMXConnectorServer</A> server, java.util.Map environment)</CODE> <BR> Called by subclasses.</TD> </TR> </TABLE> <!-- ========== METHOD SUMMARY =========== --> <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> <B>Method Summary</B></FONT></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected javax.security.auth.Subject</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#authenticate(java.lang.Object)">authenticate</A></B>(java.lang.Object credentials)</CODE> <BR> Authenticates a Subject with the given credentials, by looking up a JMXAuthenticator in the environment returned by <A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#getEnvironment()"><CODE>getEnvironment()</CODE></A>.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#close()">close</A></B>()</CODE> <BR> Implemented using the template method pattern</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#closeConnection(mx4j.tools.remote.Connection)">closeConnection</A></B>(<A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A> connection)</CODE> <BR> Implemented using the template method pattern, handles the emission of the connection notification of type "closed".</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE> <A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#connect(java.lang.Object)">connect</A></B>(java.lang.Object credentials)</CODE> <BR> Implemented using the template method pattern, it handles authentication, creation of the connection ID, emission of connection notification of type "opened".</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.lang.String</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#createConnectionID(javax.security.auth.Subject)">createConnectionID</A></B>(javax.security.auth.Subject subject)</CODE> <BR> Returns a connection ID as specified by JSR 160.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#doClose()">doClose</A></B>()</CODE> <BR> Closes this ConnectionManager but not the connections it manages</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract void</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#doCloseConnection(mx4j.tools.remote.Connection)">doCloseConnection</A></B>(<A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A> connection)</CODE> <BR> Closes the given Connection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected abstract <A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A></CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#doConnect(java.lang.String, javax.security.auth.Subject)">doConnect</A></B>(java.lang.String connectionId, javax.security.auth.Subject subject)</CODE> <BR> Template method to be implemented by subclasses; must return the server-side part of a connection.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.util.Map</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#getEnvironment()">getEnvironment</A></B>()</CODE> <BR> Returns the environment passed when creating the JMXConnectorServer</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected java.security.AccessControlContext</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#getSecurityContext()">getSecurityContext</A></B>()</CODE> <BR> Returns a security context at the moment of creation of this ConnectionManager.</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>protected boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#isClosed()">isClosed</A></B>()</CODE> <BR> Returns whether the <A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#close()"><CODE>close()</CODE></A> method has been called.</TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> <A NAME="methods_inherited_from_class_mx4j.tools.remote.ConnectionManager"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TH ALIGN="left"><B>Methods inherited from interface mx4j.tools.remote.<A HREF="../../../mx4j/tools/remote/ConnectionManager.html" title="interface in mx4j.tools.remote">ConnectionManager</A></B></TH> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><A HREF="../../../mx4j/tools/remote/ConnectionManager.html#getProtocol()">getProtocol</A></CODE></TD> </TR> </TABLE> <P> <!-- ========= CONSTRUCTOR DETAIL ======== --> <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TH> </TR> </TABLE> <A NAME="AbstractConnectionManager(mx4j.tools.remote.AbstractJMXConnectorServer, java.util.Map)"><!-- --></A><H3> AbstractConnectionManager</H3> <PRE> protected <B>AbstractConnectionManager</B>(<A HREF="../../../mx4j/tools/remote/AbstractJMXConnectorServer.html" title="class in mx4j.tools.remote">AbstractJMXConnectorServer</A> server, java.util.Map environment)</PRE> <DL> <DD>Called by subclasses. <P> <DL> <DT><B>Parameters:</B><DD><CODE>server</CODE> - The JMXConnectorServer that will emit connection notifications<DD><CODE>environment</CODE> - The environment passed when the JMXConnectorServer is created.</DL> </DL> <!-- ============ METHOD DETAIL ========== --> <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> <B>Method Detail</B></FONT></TH> </TR> </TABLE> <A NAME="connect(java.lang.Object)"><!-- --></A><H3> connect</H3> <PRE> public <A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A> <B>connect</B>(java.lang.Object credentials) throws java.io.IOException, java.lang.SecurityException</PRE> <DL> <DD>Implemented using the template method pattern, it handles authentication, creation of the connection ID, emission of connection notification of type "opened". <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/remote/ConnectionManager.html#connect(java.lang.Object)">connect</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/remote/ConnectionManager.html" title="interface in mx4j.tools.remote">ConnectionManager</A></CODE></DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>credentials</CODE> - The credentials sent by the client to authenticate a subject. <DT><B>Returns:</B><DD>A new client-specific connection. <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - If the connection cannot be created. <DD><CODE>java.lang.SecurityException</CODE> - If the authentication fails.<DT><B>See Also:</B><DD><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#doConnect(java.lang.String, javax.security.auth.Subject)"><CODE>doConnect(java.lang.String, javax.security.auth.Subject)</CODE></A>, <A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#authenticate(java.lang.Object)"><CODE>authenticate(java.lang.Object)</CODE></A>, <A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#createConnectionID(javax.security.auth.Subject)"><CODE>createConnectionID(javax.security.auth.Subject)</CODE></A></DL> </DD> </DL> <HR> <A NAME="createConnectionID(javax.security.auth.Subject)"><!-- --></A><H3> createConnectionID</H3> <PRE> protected java.lang.String <B>createConnectionID</B>(javax.security.auth.Subject subject)</PRE> <DL> <DD>Returns a connection ID as specified by JSR 160. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>subject</CODE> - The authenticated Subject</DL> </DD> </DL> <HR> <A NAME="doConnect(java.lang.String, javax.security.auth.Subject)"><!-- --></A><H3> doConnect</H3> <PRE> protected abstract <A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A> <B>doConnect</B>(java.lang.String connectionId, javax.security.auth.Subject subject) throws java.io.IOException</PRE> <DL> <DD>Template method to be implemented by subclasses; must return the server-side part of a connection. When an remote invocation arrives, it will lookup the corrispondent server-side part of the connection and delegate the call to it. The server-side part of the connection must then (eventually) call the MBeanServer to satisfy the request. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Parameters:</B><DD><CODE>connectionId</CODE> - The connection ID for connection that is returned<DD><CODE>subject</CODE> - The authenticated Subject <DT><B>Returns:</B><DD>The server-side part of a connection (with the given connection ID) <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - If the connection cannot be created</DL> </DD> </DL> <HR> <A NAME="close()"><!-- --></A><H3> close</H3> <PRE> public void <B>close</B>() throws java.io.IOException</PRE> <DL> <DD>Implemented using the template method pattern <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/remote/ConnectionManager.html#close()">close</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/remote/ConnectionManager.html" title="interface in mx4j.tools.remote">ConnectionManager</A></CODE></DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#doClose()"><CODE>doClose()</CODE></A>, <A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#closeConnection(mx4j.tools.remote.Connection)"><CODE>closeConnection(mx4j.tools.remote.Connection)</CODE></A></DL> </DD> </DL> <HR> <A NAME="doClose()"><!-- --></A><H3> doClose</H3> <PRE> protected abstract void <B>doClose</B>() throws java.io.IOException</PRE> <DL> <DD>Closes this ConnectionManager but not the connections it manages <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> - If this ConnectionManager cannot be closed</DL> </DD> </DL> <HR> <A NAME="closeConnection(mx4j.tools.remote.Connection)"><!-- --></A><H3> closeConnection</H3> <PRE> public void <B>closeConnection</B>(<A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A> connection) throws java.io.IOException</PRE> <DL> <DD>Implemented using the template method pattern, handles the emission of the connection notification of type "closed". This method is called both when closing the connector server and when closing a connector. <P> <DD><DL> <DT><B>Specified by:</B><DD><CODE><A HREF="../../../mx4j/tools/remote/ConnectionManager.html#closeConnection(mx4j.tools.remote.Connection)">closeConnection</A></CODE> in interface <CODE><A HREF="../../../mx4j/tools/remote/ConnectionManager.html" title="interface in mx4j.tools.remote">ConnectionManager</A></CODE></DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE><DT><B>See Also:</B><DD><A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#doCloseConnection(mx4j.tools.remote.Connection)"><CODE>doCloseConnection(mx4j.tools.remote.Connection)</CODE></A></DL> </DD> </DL> <HR> <A NAME="doCloseConnection(mx4j.tools.remote.Connection)"><!-- --></A><H3> doCloseConnection</H3> <PRE> protected abstract void <B>doCloseConnection</B>(<A HREF="../../../mx4j/tools/remote/Connection.html" title="interface in mx4j.tools.remote">Connection</A> connection) throws java.io.IOException</PRE> <DL> <DD>Closes the given Connection. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE></DL> </DD> </DL> <HR> <A NAME="isClosed()"><!-- --></A><H3> isClosed</H3> <PRE> protected boolean <B>isClosed</B>()</PRE> <DL> <DD>Returns whether the <A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#close()"><CODE>close()</CODE></A> method has been called. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getEnvironment()"><!-- --></A><H3> getEnvironment</H3> <PRE> protected java.util.Map <B>getEnvironment</B>()</PRE> <DL> <DD>Returns the environment passed when creating the JMXConnectorServer <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="getSecurityContext()"><!-- --></A><H3> getSecurityContext</H3> <PRE> protected java.security.AccessControlContext <B>getSecurityContext</B>()</PRE> <DL> <DD>Returns a security context at the moment of creation of this ConnectionManager. This security context is the restricting context that should be used when a call from a remote client is invoked in a doPrivileged() block. <P> <DD><DL> </DL> </DD> <DD><DL> </DL> </DD> </DL> <HR> <A NAME="authenticate(java.lang.Object)"><!-- --></A><H3> authenticate</H3> <PRE> protected javax.security.auth.Subject <B>authenticate</B>(java.lang.Object credentials) throws java.io.IOException, java.lang.SecurityException</PRE> <DL> <DD>Authenticates a Subject with the given credentials, by looking up a JMXAuthenticator in the environment returned by <A HREF="../../../mx4j/tools/remote/AbstractConnectionManager.html#getEnvironment()"><CODE>getEnvironment()</CODE></A>. <P> <DD><DL> </DL> </DD> <DD><DL> <DT><B>Throws:</B> <DD><CODE>java.io.IOException</CODE> <DD><CODE>java.lang.SecurityException</CODE></DL> </DD> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR> <!-- ======= START OF BOTTOM NAVBAR ====== --> <A NAME="navbar_bottom"><!-- --></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractConnectionManager.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../mx4j/tools/remote/AbstractConnection.html" title="class in mx4j.tools.remote"><B>PREV CLASS</B></A> <A HREF="../../../mx4j/tools/remote/AbstractJMXConnector.html" title="class in mx4j.tools.remote"><B>NEXT CLASS</B></A></FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?mx4j/tools/remote/AbstractConnectionManager.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractConnectionManager.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <!-- ======== END OF BOTTOM NAVBAR ======= --> <HR> <center><small>Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.</small></center> </BODY> </HTML>