| java.lang.Object com.nabhinc.spi.UserPrincipal
UserPrincipal | public class UserPrincipal implements Principal,Serializable(Code) | | User Principal.
author: Padmanabh Dabke author: (c) 2003 Nabh Information Systems, Inc. All Rights Reserved. |
Method Summary | |
public boolean | equals(Object obj) Compares this principal to the specified object.
Parameters: obj - object to compare with. | public String | getName() Returns the name of this principal. | public int | hashCode() Returns a hashcode for this principal. | public String | toString() Returns a string representation of this principal. |
UserPrincipal | public UserPrincipal(String name)(Code) | | Constructor
|
equals | public boolean equals(Object obj)(Code) | | Compares this principal to the specified object.
Parameters: obj - object to compare with. true if the object passed in is a SimplePrincipal with the same name. |
getName | public String getName()(Code) | | Returns the name of this principal.
the name of this principal. |
hashCode | public int hashCode()(Code) | | Returns a hashcode for this principal.
a hashcode for this principal. |
toString | public String toString()(Code) | | Returns a string representation of this principal.
a string representation of this principal. |
|
|