public final class EverybodyPrincipal extends Object implements Principal
Subject.| Constructor and Description |
|---|
EverybodyPrincipal()
creates a new Principal named "everybody";
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
This principal equals every instance of the class.
|
String |
getName()
Returns the name everybody.
|
int |
hashCode()
Returns a hashcode for this principal.
|
boolean |
implies(Subject subject)
Always returns true.
|
String |
toString()
Returns a string representation of this principal.
|
public EverybodyPrincipal()
public String getName()
getName in interface PrincipalPrincipal.getName()public boolean implies(Subject subject)
implies in interface Principalsubject - a subject or null if no user has logged in yetPrincipal.implies(org.wicketstuff.security.hive.authentication.Subject)public boolean equals(Object obj)
equals in interface Principalequals in class Objectobj - principal to compare with.Object.equals(java.lang.Object)public int hashCode()
PrincipalhashCode in interface PrincipalhashCode in class ObjectObject.hashCode()Copyright © 2015. All rights reserved.