| org.sakaiproject.dav.DavRealm
DavRealm | final public class DavRealm extends RealmBase (Code) | | Simple implementation of Realm that consults the Sakai user directory service to provide container security equivalent to then application security in CHEF.
IMPLEMENTATION NOTE: The user is assumed to have all "roles" because servlets and teamlets will enforce roles within Sakai - so in this realm, we simply indicate "true".
|
Field Summary | |
final protected String | info Descriptive information about this Realm implementation. | final protected static String | name Descriptive information about this Realm implementation. |
Method Summary | |
public Principal | authenticate(String username, String credentials) Return the Principal associated with the specified username and credentials, if there is one; otherwise return null . | public String | getInfo() Return descriptive information about this Realm implementation and the corresponding version number, in the format <description>/<version> . | protected String | getName() Return a short name for this Realm implementation. | protected String | getPassword(String username) Return the password associated with the given principal's user name. | protected Principal | getPrincipal(String username) | public boolean | hasRole(Principal principal, String role) | public synchronized void | start() Prepare for active use of the public methods of this Component. | public synchronized void | stop() Gracefully shut down active use of the public methods of this Component. |
info | final protected String info(Code) | | Descriptive information about this Realm implementation.
|
name | final protected static String name(Code) | | Descriptive information about this Realm implementation.
|
authenticate | public Principal authenticate(String username, String credentials)(Code) | | Return the Principal associated with the specified username and credentials, if there is one; otherwise return null .
Parameters: username - Username of the Principal to look up Parameters: credentials - Password or other credentials to use in authenticating this username |
getInfo | public String getInfo()(Code) | | Return descriptive information about this Realm implementation and the corresponding version number, in the format <description>/<version> .
|
getName | protected String getName()(Code) | | Return a short name for this Realm implementation.
|
getPassword | protected String getPassword(String username)(Code) | | Return the password associated with the given principal's user name.
|
start | public synchronized void start() throws LifecycleException(Code) | | Prepare for active use of the public methods of this Component.
exception: IllegalStateException - if this component has already been started exception: LifecycleException - if this component detects a fatal error that prevents it from being started |
stop | public synchronized void stop() throws LifecycleException(Code) | | Gracefully shut down active use of the public methods of this Component.
exception: IllegalStateException - if this component has not been started exception: LifecycleException - if this component detects a fatal error that needs to be reported |
|
|