|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.remote.JMXPrincipal
public class 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 FormConstructor 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 Principal
JMXPrincipal
.public String toString()
JMXPrincipal
.
toString
in interface Principal
toString
in class Object
JMXPrincipal
.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 Principal
equals
in class Object
o
- Object to be compared for equality with this
JMXPrincipal
.
JMXPrincipal
.Object.hashCode()
,
Hashtable
public int hashCode()
JMXPrincipal
.
hashCode
in interface Principal
hashCode
in class Object
JMXPrincipal
.Object.equals(java.lang.Object)
,
Hashtable
|
Java™ Platform Standard Ed. 6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.