|
||||||||||
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 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(java.lang.String userName)
This constructor accepts the user name. |
|
UserPrincipal(java.lang.String userName,
java.lang.String hostName)
This constructor accepts the user name and host 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 host name associated with this principal. |
java.lang.String |
getName()
Return the name of this principal identity; that is, return the 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. |
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 |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserPrincipal(java.lang.String userName) throws java.lang.IllegalArgumentException
userName
- - The user login name.
java.lang.IllegalArgumentException
- - If the userName
is null
.public UserPrincipal(java.lang.String userName, java.lang.String hostName) throws java.lang.IllegalArgumentException
userName
- - The user login name.hostName
- - The host name.
java.lang.IllegalArgumentException
- - If the userName
is null
.Method Detail |
---|
public boolean equals(java.lang.Object otherPrincipal)
UserPrincipal
and the user name and
authentication host name are the same.
equals
in interface java.security.Principal
equals
in class java.lang.Object
otherPrincipal
- - Principal
instance to compare for equality.
true
if the object are equal; false
otherwise.Object.equals(java.lang.Object)
public java.lang.String getHostName()
public java.lang.String getName()
getName
in interface java.security.Principal
Principal.getName()
public java.lang.String getUserName()
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |