Authenticates the MBeanServerConnection client
with the given client credentials.
Returns:
the authenticated subject containing its associated principals.
Parameters:
-
credentials - the user-defined credentials to be passed
into the server in order to authenticate the user before
creating the
MBeanServerConnection. The actual
type of this parameter, and whether it can be null, depends on
the connector.
Throws:
-
SecurityException - if the server cannot authenticate the user
with the provided credentials.