Tests for equality between the specified object and this identity.
This first tests to see if the entities actually refer to the same
object, in which case it returns true. Next, it checks to see if
the entities have the same name and the same scope. If they do,
the method returns true. Otherwise, it calls
identityEquals
, which subclasses should
override.
Returns:
true if the objects are considered equal, false otherwise.
Parameters:
-
identity - the object to test for equality with this identity.
See Also:
Identity.identityEquals(java.security.Identity)
,