org.apache.jackrabbit.core.security.principal
Class PrincipalImpl
java.lang.Object
org.apache.jackrabbit.core.security.principal.PrincipalImpl
- All Implemented Interfaces:
- Serializable, Principal, JackrabbitPrincipal
public class PrincipalImpl
- extends Object
- implements JackrabbitPrincipal, Serializable
Base class for implementations of JackrabbitPrincipal
.
- See Also:
- Serialized Form
PrincipalImpl
public PrincipalImpl(String name)
- Creates a new principal with the given name.
- Parameters:
name
- the name of this principal
getName
public String getName()
-
- Specified by:
getName
in interface Principal
equals
public boolean equals(Object obj)
- Two principals are equal, if their names are.
- Specified by:
equals
in interface Principal
- Overrides:
equals
in class Object
- See Also:
Object.equals(Object)
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Principal
- Overrides:
hashCode
in class Object
- Returns:
- the hash code of the principals name.
- See Also:
Object.hashCode()
toString
public String toString()
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.