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 Principal
Principal.getName()
public boolean implies(Subject subject)
implies
in interface Principal
subject
- 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 Principal
equals
in class Object
obj
- principal to compare with.Object.equals(java.lang.Object)
public int hashCode()
Principal
hashCode
in interface Principal
hashCode
in class Object
Object.hashCode()
Copyright © 2015. All rights reserved.