|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.wbem.client.UserPrincipal
public class UserPrincipal
This class implements a Principal identity for a client user identity that authenticates with a username and password. That is, it represents the user's login identity on the remote system which is running the WBEM Server.
| Constructor Summary | |
|---|---|
UserPrincipal(String userName)
This constructor accepts the user name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object otherPrincipal)
The equals method checks if the specified object is the same principal as this object. |
String |
getName()
Return the name of this principal identity; that is, return the login name. |
String |
getUserName()
Return the principal's login user name. |
int |
hashCode()
The hashCode method returns an integer hash code to represent this principal. |
String |
toString()
The toString method returns a string representation of the principal suitable for displaying in messages. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UserPrincipal(String userName)
userName - The user login name.
If - the userName is null| Method Detail |
|---|
public boolean equals(Object otherPrincipal)
equals in interface Principalequals in class ObjectotherPrincipal - Principal instance to compare for equality
public String getName()
getName in interface Principalpublic String getUserName()
public int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic String toString()
toString in interface PrincipaltoString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||