Class EverybodyPrincipal
- java.lang.Object
-
- org.wicketstuff.security.hive.authorization.EverybodyPrincipal
-
- All Implemented Interfaces:
Serializable,Principal
public final class EverybodyPrincipal extends Object implements Principal
Principal used for permissions granted to everyone, regardless of an authenticated subject. This is the principal used when you specify a grant statement without principal in the policy file. You should not need to manually add this principal to yourSubject.- Author:
- marrink
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EverybodyPrincipal()creates a new Principal named "everybody";
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)This principal equals every instance of the class.StringgetName()Returns the name everybody.inthashCode()Returns a hashcode for this principal.booleanimplies(Subject subject)Always returns true.StringtoString()Returns a string representation of this principal.
-
-
-
Method Detail
-
getName
public String getName()
Returns the name everybody.- Specified by:
getNamein interfacePrincipal- Returns:
- the name of this principal
- See Also:
Principal.getName()
-
implies
public boolean implies(Subject subject)
Always returns true.- Specified by:
impliesin interfacePrincipal- Parameters:
subject- a subject or null if no user has logged in yet- Returns:
- true if the subject in any way implies this principal, false otherwise.
- See Also:
Principal.implies(org.wicketstuff.security.hive.authentication.Subject)
-
equals
public boolean equals(Object obj)
This principal equals every instance of the class.- Specified by:
equalsin interfacePrincipal- Overrides:
equalsin classObject- Parameters:
obj- principal to compare with.- Returns:
- true if the principal passed in is the same as this principal, false otherwise.
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Description copied from interface:PrincipalReturns a hashcode for this principal.- Specified by:
hashCodein interfacePrincipal- Overrides:
hashCodein classObject- Returns:
- a hashcode for this principal.
- See Also:
Object.hashCode()
-
-