public class PrincipalImpl extends Object implements org.apache.jackrabbit.api.security.principal.JackrabbitPrincipal, Serializable
JackrabbitPrincipal
.Constructor and Description |
---|
PrincipalImpl(String name)
Creates a new principal with the given name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two principals are equal, if their names are.
|
String |
getName() |
int |
hashCode() |
String |
toString() |
public PrincipalImpl(String name)
name
- the name of this principalpublic boolean equals(Object obj)
equals
in interface Principal
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
Object.hashCode()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.