| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 {@link javax.security.auth.Subject}
class for more information on how to achieve this.
Authorization decisions can then be based upon
the Principals associated with a Subject
.
Constructor Summary | |
---|---|
JMXPrincipal(String name) Creates a JMXPrincipal for a given identity. |
Method Summary | |
---|---|
boolean |
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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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.Method Detail |
---|
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 class Object
o
- Object to be compared for equality with this
JMXPrincipal
.JMXPrincipal
.public String getName()
JMXPrincipal
.public int hashCode()
JMXPrincipal
.
hashCode
in class Object
JMXPrincipal
.public String toString()
JMXPrincipal
.
toString
in class Object
JMXPrincipal
.
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |