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