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 javax.
class for more information on how to achieve this.
Authorization decisions can then be based upon
the Principals associated with a Subject.
java.security.Principal , javax.security.auth.Subject
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | JMXPrincipal(String
the JMX Remote API name for this identity. name)Creates a JMXPrincipal for a given identity. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the specified Object is equal to thisJMXPrincipal.Object to be compared for equality with this
o)JMXPrincipal.Overrides java. Implements java. Compares the specified Object with this |
| public String | Returns: the name of thisJMXPrincipal.Implements java. Returns the name of this principal. |
| public int | Returns: a hash code for thisJMXPrincipal.Overrides java. Implements java. Returns a hash code for this |
| private void | |
| public String | Returns: a string representation of thisJMXPrincipal.Overrides java. Implements java. Returns a string representation of this |
| private static void |
| name | back to summary |
|---|---|
private String name
| |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| JMXPrincipal | back to summary |
|---|---|
| public JMXPrincipal(String name) Creates a JMXPrincipal for a given identity.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Implements java. Compares the specified Object with this
| |
| getName | back to summary |
|---|---|
| public String getName() Implements java. Returns the name of this principal.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Returns a hash code for this
| |
| readObject | back to summary |
|---|---|
| private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements java. Returns a string representation of this
| |
| validate | back to summary |
|---|---|
| private static void validate(String name) throws NullPointerException | |