| java.lang.Object org.objectweb.jonas.security.realm.web.jetty50.Standard
All known Subclasses: org.objectweb.jonas.security.realm.web.jetty50.JAAS,
Standard | public class Standard implements UserRealm(Code) | |
Implementation of a Realm. Use any JOnAS realm by specifying the resource
name
author: Greg Wilkins for the HashUserRealm author: Florent Benoit : Jetty 4.2.x / JOnAS 3.1 |
Standard | protected Standard()(Code) | | Default Constructor
|
Standard | public Standard(String resourceName) throws Exception(Code) | | Constructor
Parameters: resourceName - name of the resource to use throws: Exception - if the resource can't be retrieved |
Standard | public Standard(String name, String resourceName) throws Exception(Code) | | Constructor
Parameters: name - name of the realm Parameters: resourceName - name of the resource to use throws: Exception - if the resource can't be retrieved |
addUser | protected void addUser(String username, Principal principal)(Code) | | Add a user to the current map
Parameters: username - name of the user Parameters: principal - object |
authenticate | public Principal authenticate(String username, Object credentials, HttpRequest request)(Code) | | Authenticate a user with a specific username and credentials
Parameters: username - name of the user Parameters: credentials - credential of the user Parameters: request - httprequest a Jetty principal |
disassociate | public void disassociate(Principal user)(Code) | | Disassociate a user Not implemented
Parameters: user - the given user |
getLogger | protected static Logger getLogger()(Code) | | the logger. |
getPrincipal | public Principal getPrincipal(String username)(Code) | | Gets the principal with the given username
Parameters: username - the given username the principal with the given username |
getUsers | protected Map getUsers()(Code) | | the users. |
isAuthenticated | public boolean isAuthenticated(Principal user)(Code) | | Check if a user is authenticated
Parameters: user - The user, which must be from this realm True if the user is authenticated |
isUserInRole | public synchronized boolean isUserInRole(Principal user, String roleName)(Code) | | Check if a user is in a role.
Parameters: user - The user, which must be from this realm Parameters: roleName - the role to test for the given user True if the user can act in the role. |
logout | public void logout(Principal user)(Code) | | Log out a specific user
Parameters: user - the user to logout |
popRole | public Principal popRole(Principal user)(Code) | | Pop a role to a user Not implemented
Parameters: user - the given user the new principal |
pushRole | public Principal pushRole(Principal user, String role)(Code) | | Push a role to a user Not implemented
Parameters: user - the given user Parameters: role - the role to push the new principal |
reauthenticate | public boolean reauthenticate(Principal user)(Code) | | Check if the specific user is authenticated
Parameters: user - the user to reauthenticate true if the user is authenthicated |
removeUser | protected void removeUser(String username)(Code) | | Remove a specific user
Parameters: username - user to remove |
setName | protected void setName(String name)(Code) | | Sets the name of the realm
Parameters: name - The name to set. |
|
|