| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.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 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 JMXPrincipalfor 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 PrincipaltoString in class ObjectJMXPrincipal.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 Principalequals in class Objecto - Object to be compared for equality with this
 JMXPrincipal.
JMXPrincipal.Object.hashCode(), 
Hashtablepublic int hashCode()
JMXPrincipal.
 
hashCode in interface PrincipalhashCode in class ObjectJMXPrincipal.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 © 1993, 2010, Oracle and/or its affiliates. All rights reserved.