public class JMXPrincipal extends Object implements Principal, Serializable
The identity of a remote client of the JMX Remote API.
Principals such as this
may be associated with a particular
to augment that
Subject with an additional
identity. Refer to the
class for more information on how to achieve this.
Authorization decisions can then be based upon
the Principals associated with a
|Constructor and Description|
Creates a JMXPrincipal for a given identity.
|Modifier and Type||Method and Description|
Compares the specified Object with this
Returns the name of this principal.
Returns a hash code for this
Returns a string representation of this
public String getName()
public String toString()
public boolean equals(Object o)
JMXPrincipalfor equality. Returns true if the given object is also a
JMXPrincipaland the two JMXPrincipals have the same name.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2016, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.