javax.wbem.client
public class UserPrincipal extends Object implements Principal
UserPrincipal
implements a Principal identity for a client user
identity that authenticates with a username and password. In other words, it
represents the user's login identity on the remote system.
UserPrincipal
includes the username and optionally the host
information for which the username is used to authenticate.
Constructor Summary | |
---|---|
UserPrincipal(String pUserName)
This constructor accepts the user name.
| |
UserPrincipal(String pUserName, String pHostName)
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: pUserName The user login name.
Throws: IllegalArgumentException
If the null
.
Parameters: pUserName The user login name. pHostName The host name for this principal.
Throws: IllegalArgumentException
If the pUserName
is null
.
Returns: The host name.
Returns: The name of this principal identity.
See Also: java.security.Principal#getName()
Returns: The user login name.