Methods inherited from interface java.security.Principal
hashCode
Constructor Detail
UserIdPrincipal
public UserIdPrincipal(java.lang.String userId)
Method Detail
equals
public boolean equals(java.lang.Object another)
Compares this principal to the specified object. Returns true
if the object passed in matches the principal represented by
the implementation of this interface.
Specified by:
equals in interface java.security.Principal
Parameters:
another - principal to compare with.
Returns:
true if the principal passed in is the same as that
encapsulated by this principal, and false otherwise.
toString
public java.lang.String toString()
Returns a string representation of this principal.