|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.web.jetty6.security.JettyPrincipal
public class JettyPrincipal
Define a principal which can be used by Jetty.
Constructor Summary | |
---|---|
JettyPrincipal(String name,
List<String> roles)
Constructor. |
Method Summary | |
---|---|
String |
getName()
Get the name of this principal. |
List<String> |
getRoles()
Gets the roles of this user. |
boolean |
isAuthenticated()
This user is authenticated ? |
boolean |
isUserInRole(String role)
Check if the given role is in the user's roles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public JettyPrincipal(String name, List<String> roles)
name
- name of this principalroles
- roles for this principalMethod Detail |
---|
public String getName()
getName
in interface Principal
public boolean isAuthenticated()
public boolean isUserInRole(String role)
role
- the given role
public List<String> getRoles()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |