|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.wbem.client.UserPrincipal
This class implements a Java security Principal identity for a client user identity that authenticates with a Unix username and login password. That is, it represents the user's login identity on the remote server system which is running the CIMOM.
Constructor Summary | |
UserPrincipal()
Empty constructor. |
|
UserPrincipal(java.lang.String userName)
This constructor accepts the user name. |
Method Summary | |
boolean |
equals(java.lang.Object otherPrincipal)
The equals method checks if the specified object is the same principal as this object. |
java.lang.String |
getHostName()
Return the server host name where this principal identity was authenticated. |
java.lang.String |
getName()
Return the name of this principal identity; that is, return the Unix user login name. |
java.lang.String |
getUserName()
Return the principal's login user name. |
int |
hashCode()
The hashCode method returns an integer hash code to represent this principal. |
void |
setHostName(java.lang.String hostName)
Set the server host name where this principal was authenticated. |
void |
setUserName(java.lang.String userName)
Set the principal user login name. |
java.lang.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()
public UserPrincipal(java.lang.String userName)
userName
- The user login name.Method Detail |
public java.lang.String getName()
getName
in interface java.security.Principal
public boolean equals(java.lang.Object otherPrincipal)
equals
in interface java.security.Principal
equals
in class java.lang.Object
otherPrincipal
- Principal instance to compare for equalitypublic java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public java.lang.String getUserName()
public java.lang.String getHostName()
public void setUserName(java.lang.String userName)
userName
- The user login name.public void setHostName(java.lang.String hostName)
hostName
- The server host name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |