|
||||||||||
| 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()
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 wrap| Method Detail |
|---|
public final Principal getPrincipal()
public final String getName()
getName in interface Principalpublic boolean equals(Object obj)
equals in interface Principalequals in class Objectobj -
public int hashCode()
hashCode in interface PrincipalhashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||