|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.wbem.security.UserPrincipal | +--com.sun.wbem.client.SolarisUserPrincipal
This class implements a Java security Principal identity for a client user identity that authenticates with a Solaris username and login password. An optional Solaris role name may be specified.
Constructor Summary | |
SolarisUserPrincipal()
Empty constructor. |
|
SolarisUserPrincipal(java.lang.String userName)
This constructor accepts the Solaris user name. |
|
SolarisUserPrincipal(java.lang.String userName,
java.lang.String roleName)
This constructor accepts the Solaris user name and the Solaris role name that the user will assume. |
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 |
getName()
Return the name of this principal identity. |
java.lang.String |
getRoleName()
Return the Solaris role name this principal is assuming. |
int |
hashCode()
The hashCode method returns an integer hash code to represent this principal. |
boolean |
isRoleAssumed()
Returns true if a role has been assumed. |
void |
setRoleName(java.lang.String roleName)
Set the Solaris role name this principal will assume when authenticated to a Solaris server. |
java.lang.String |
toString()
The toString method returns a string representation of the principal suitable for displaying in messages. |
Methods inherited from class com.sun.wbem.security.UserPrincipal |
getHostName,
getUserName,
setHostName,
setUserName |
Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SolarisUserPrincipal()
public SolarisUserPrincipal(java.lang.String userName)
userName
- The Solaris user login name.public SolarisUserPrincipal(java.lang.String userName, java.lang.String roleName)
userName
- The Solaris user login name.roleName
- The name of the Solaris role to be assumed.Method Detail |
public java.lang.String getName()
public boolean equals(java.lang.Object otherPrincipal)
otherPrincipal
- Principal instance to compare for equalitypublic java.lang.String toString()
public int hashCode()
public java.lang.String getRoleName()
public boolean isRoleAssumed()
public void setRoleName(java.lang.String roleName)
roleName
- The Solaris role name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |