
public final class PrincipalWrapper extends Object implements Principal
| Constructor and Description |
|---|
PrincipalWrapper(Principal principal)
Constructs a new instance of this class by wrapping (decorating)
the supplied principal.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public PrincipalWrapper(Principal principal)
principal - The principal to wrappublic Principal getPrincipal()
public boolean equals(Object obj)
Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.