|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.remote.JMXPrincipal
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.
Principal,
Subject,
Serialized Form| Constructor Summary | |
JMXPrincipal(String name)
Creates a JMXPrincipal for a given identity. |
|
| Method Summary | |
boolean |
equals(Object o)
Compares the specified Object with this JMXPrincipal
for equality. |
String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hash code for this JMXPrincipal. |
String |
toString()
Returns a string representation of this JMXPrincipal. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
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.| Method Detail |
public String getName()
getName in interface PrincipalJMXPrincipal.public String toString()
JMXPrincipal.
toString in interface PrincipalJMXPrincipal.public boolean equals(Object o)
JMXPrincipal
for equality. Returns true if the given object is also a
JMXPrincipal and the two JMXPrincipals
have the same name.
equals in interface Principalo - Object to be compared for equality with this
JMXPrincipal.
JMXPrincipal.public int hashCode()
JMXPrincipal.
hashCode in interface PrincipalJMXPrincipal.
|
JMX Remote API Specification 1.0 Final Release Generated from RI build jmxremote-1_0_1_03-b57.2 2005.11.28_17:40:34_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||