public class SimplePrincipal extends Object implements Principal
| Constructor and Description |
|---|
SimplePrincipal(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares this principal to the specified object.
|
String |
getName()
Returns the name of this principal.
|
int |
hashCode()
Returns a hashcode for this principal.
|
boolean |
implies(Subject subject)
By default this principal does not imply any additional subjects.
|
public SimplePrincipal(String name)
name - the name of this principalpublic final String getName()
PrincipalgetName 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 int hashCode()
PrincipalhashCode in interface PrincipalhashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
Principalequals in interface Principalequals in class Objectobj - principal to compare with.Object.equals(java.lang.Object)Copyright © 2015. All rights reserved.