|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas.security.realm.JRealmJetty42
Implementation of a Realm. Use any JOnAS realm by specifying the resource name 12/03 Update to take into account new Realm mechanism of Jetty
Constructor Summary | |
JRealmJetty42(java.lang.String resourceName)
Constructor |
|
JRealmJetty42(java.lang.String name,
java.lang.String resourceName)
Constructor |
Method Summary | |
UserPrincipal |
authenticate(java.lang.String username,
java.lang.Object credentials,
HttpRequest request)
Authenticate a user with a specific username and credentials |
void |
disassociate(UserPrincipal user)
Disassociate a user Not implemented |
java.lang.String |
getName()
|
java.security.Principal |
getPrincipal(java.lang.String username)
Gets the principal with the given username |
boolean |
isAuthenticated(java.security.Principal user)
Check if a user is authenticated |
boolean |
isUserInRole(java.security.Principal user,
java.lang.String roleName)
Check if a user is in a role. |
void |
logout(UserPrincipal user)
Log out a specific user |
UserPrincipal |
popRole(UserPrincipal user)
Pop a role to a user Not implemented |
UserPrincipal |
pushRole(UserPrincipal user,
java.lang.String role)
Push a role to a user Not implemented |
boolean |
reauthenticate(java.security.Principal user)
Check if the specific user is authenticated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JRealmJetty42(java.lang.String resourceName) throws java.lang.Exception
resourceName
- name of the resource to use
java.lang.Exception
- if the resource can't be retrievedpublic JRealmJetty42(java.lang.String name, java.lang.String resourceName) throws java.lang.Exception
name
- name of the realmresourceName
- name of the resource to use
java.lang.Exception
- if the resource can't be retrievedMethod Detail |
public java.lang.String getName()
public UserPrincipal authenticate(java.lang.String username, java.lang.Object credentials, HttpRequest request)
username
- name of the usercredentials
- credential of the userrequest
- httprequest
public boolean isUserInRole(java.security.Principal user, java.lang.String roleName)
user
- The user, which must be from this realmroleName
-
public boolean isAuthenticated(java.security.Principal user)
user
- The user, which must be from this realm
public java.security.Principal getPrincipal(java.lang.String username)
username
- the given username
public void disassociate(UserPrincipal user)
user
- the given userpublic UserPrincipal pushRole(UserPrincipal user, java.lang.String role)
user
- the given userrole
- the role to push
public UserPrincipal popRole(UserPrincipal user)
user
- the given user
public void logout(UserPrincipal user)
user
- the user to logoutpublic boolean reauthenticate(java.security.Principal user)
user
- the user to reauthenticate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |