|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.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()
|
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
- Method Detail |
---|
public final Principal getPrincipal()
public final String getName()
getName
in interface Principal
public boolean equals(Object obj)
equals
in interface Principal
equals
in class Object
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 |