|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.objectweb.jonas.security.realm.web.jetty50.JettyPrincipal
public class JettyPrincipal
Define a principal which can be used by Jetty
| Constructor Summary | |
|---|---|
JettyPrincipal(java.lang.String name,
java.util.ArrayList roles)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Get the name of this principal |
java.util.ArrayList |
getRoles()
Gets the roles of this user |
boolean |
isAuthenticated()
This user is authenticated ? |
boolean |
isUserInRole(java.lang.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(java.lang.String name,
java.util.ArrayList roles)
name - name of this principalroles - roles for this principal| Method Detail |
|---|
public java.lang.String getName()
getName in interface java.security.Principalpublic boolean isAuthenticated()
public boolean isUserInRole(java.lang.String role)
role - the given role
public java.util.ArrayList getRoles()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||