public class JMXPrincipal extends Object implements Principal, Serializable
The identity of a remote client of the JMX Remote API.
Principals such as this JMXPrincipal may be associated with a particular Subject to augment that Subject with an additional identity. Refer to the Subject class for more information on how to achieve this. Authorization decisions can then be based upon the Principals associated with a Subject.
public JMXPrincipal(String name)
Creates a JMXPrincipal for a given identity.
name - the JMX Remote API name for this identity.NullPointerException - if the name is null.public String getName()
Returns the name of this principal.
public String toString()
Returns a string representation of this JMXPrincipal.
toString in interface Principal
toString in class Object
JMXPrincipal.public boolean equals(Object o)
Compares the specified Object with this JMXPrincipal for equality. Returns true if the given object is also a JMXPrincipal and the two JMXPrincipals have the same name.
equals in interface Principal
equals in class Object
o - Object to be compared for equality with this JMXPrincipal.JMXPrincipal.Object.hashCode(), HashMap
public int hashCode()
Returns a hash code for this JMXPrincipal.
hashCode in interface Principal
hashCode in class Object
JMXPrincipal.Object.equals(java.lang.Object), System.identityHashCode(java.lang.Object)
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.