| java.lang.Object org.ow2.easybeans.security.struct.JPrincipal
All known Subclasses: org.ow2.easybeans.security.struct.JRole,
Method Summary | |
public boolean | equals(Object another) Compares this principal to the specified object. | 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. |
JPrincipal | public JPrincipal(String name)(Code) | | Constructor.
Parameters: name - the name of this principal |
equals | public boolean equals(Object another)(Code) | | Compares this principal to the specified object. Returns true if the
object passed in matches the principal represented by the implementation
of this interface.
Parameters: another - principal to compare with. true if the principal passed in is the same as that encapsulatedby this principal, and false otherwise. |
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. |
|
|