javax.wbem.client
public class UserPrincipal extends Object implements Principal
| 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 Unix user
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. |
Parameters: userName - The user login name.
Throws: IllegalArgumentException -
If the userName is null.
UserPrincipal and the user name and
authentication host name are the same.
Parameters: otherPrincipal -
Principal instance to compare for equality.
Returns: true if the object are equal; false
otherwise.
See Also: java.lang.Object#equals(java.lang.Object)
Returns: The name of this principal identity.
See Also: java.security.Principal#getName()
Returns: The user login name.
Returns: An integer hash code representing the principal.
See Also: java.lang.Object#hashCode()
Returns: A printable string form of the principal identity.
See Also: java.lang.Object#toString()