javax.wbem.client
public class UserPrincipal extends Object implements Principal
Constructor Summary | |
---|---|
UserPrincipal(String userName)
This constructor accepts the user name.
| |
UserPrincipal(String userName, String hostName)
This constructor accepts the user name and host name.
|
Method Summary | |
---|---|
String | getHostName()
Return the host name associated with this principal.
|
String | getName()
Return the name of this principal identity; that is, return the login
name.
|
String | getUserName()
Return the principal's login user name.
|
Parameters: userName - The user login name.
Throws: IllegalArgumentException
- If the userName
is null
.
Parameters: userName - The user login name. hostName - The host name.
Throws: IllegalArgumentException
- If the userName
is null
.
Returns: The hostname.
Returns: The name of this principal identity.
See Also: java.security.Principal#getName()
Returns: The user login name.