|
||||||||||
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
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()
|
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 |
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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |