This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.management.remote
class JMXPrincipal

java.lang.Object extended by javax.management.remote.JMXPrincipal
All Implemented Interfaces:
Serializable, Principal

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

          Creates a JMXPrincipal for a given identity.
 
Method Summary
 boolean

          Compares the specified Object with this JMXPrincipal for equality.
 String

          Returns the name of this principal.
 int

          Returns a hash code for this JMXPrincipal.
 String

          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

JMXPrincipal

public JMXPrincipal(String name)

Creates a JMXPrincipal for a given identity.

Parameters:
name - the JMX Remote API name for this identity.
Method Detail

equals

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.

Overrides:
equals in class Object
Parameters:
o - Object to be compared for equality with this JMXPrincipal.
Returns:
true if the specified Object is equal to this JMXPrincipal.

getName

public String getName()
Returns the name of this principal.

Returns:
the name of this JMXPrincipal.

hashCode

public int hashCode()
Returns a hash code for this JMXPrincipal.

Overrides:
hashCode in class Object
Returns:
a hash code for this JMXPrincipal.

toString

public String toString()
Returns a string representation of this JMXPrincipal.

Overrides:
toString in class Object
Returns:
a string representation of this JMXPrincipal.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.