|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.auth.login.PrincipalWrapper
public final class PrincipalWrapper
Wrapper class for container-managed or externally-provided principals. Instances of PrincipalWrapper are immutable.
Constructor Summary | |
---|---|
PrincipalWrapper(Principal principal)
Constructs a new instance of this class by wrapping (decorating) the supplied principal. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Two PrincipalWrapper objects are equal if their internally-wrapped principals are also equal. |
String |
getName()
Returns the name of the wrapped principal. |
Principal |
getPrincipal()
Returns the wrapped Principal used to construct this instance. |
int |
hashCode()
The hashcode is based on the hashcode of the wrapped principal. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
toString |
Constructor Detail |
---|
public PrincipalWrapper(Principal principal)
principal
- The principal to wrapMethod Detail |
---|
public Principal getPrincipal()
public String getName()
getName
in interface Principal
public boolean equals(Object obj)
equals
in interface Principal
equals
in class Object
obj
-
public int hashCode()
hashCode
in interface Principal
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |