Package com.globalmentor.security
Class AbstractPrincipal
An abstract implementation of a principal.
- Author:
- Garret Wilson
-
Constructor Details
-
AbstractPrincipal
Constructor specifying the principal name.- Parameters:
name
- The name of the principal.
-
-
Method Details
-
getName
-
equals
Determines if the object is another principal with the same ID.- Specified by:
equals
in interfacePrincipal
- Overrides:
equals
in classDefaultIDed<String>
- Parameters:
object
- The object with which to compare this object.- Returns:
true
if the object is a principal with the same ID.- See Also:
-