public final class DavRealm
extends org.apache.catalina.realm.RealmBase
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".
| Modifier and Type | Field and Description |
|---|---|
protected static String |
info
Descriptive information about this Realm implementation.
|
protected static String |
name
Descriptive information about this Realm implementation.
|
allRolesMode, container, containerLog, realmPath, sm, stripRealmForGss, support, validate, x509UsernameRetriever, x509UsernameRetrieverClassNameAFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT| Constructor and Description |
|---|
DavRealm() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(String username,
String credentials)
Return the Principal associated with the specified username and credentials, if there is one; otherwise return
null. |
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) |
boolean |
hasRole(Principal principal,
String role) |
boolean |
hasRole(org.apache.catalina.Wrapper wrapper,
Principal principal,
String role) |
addPropertyChangeListener, authenticate, authenticate, authenticate, authenticate, backgroundProcess, Digest, findSecurityConstraints, getAllRolesMode, getContainer, getCredentialHandler, getDigest, getDomainInternal, getObjectNameKeyProperties, getPrincipal, getPrincipal, getRealmPath, getRealmSuffix, getRoles, getServer, getTransportGuaranteeRedirectStatus, getValidate, getX509UsernameRetrieverClassName, hasMessageDigest, hasResourcePermission, hasRoleInternal, hasUserDataPermission, initInternal, isAvailable, isStripRealmForGss, main, removePropertyChangeListener, setAllRolesMode, setContainer, setCredentialHandler, setRealmPath, setStripRealmForGss, setTransportGuaranteeRedirectStatus, setValidate, setX509UsernameRetrieverClassName, startInternal, stopInternal, toStringdestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregisterprotected static final String info
protected static final String name
public String getInfo()
<description>/<version>.public Principal authenticate(String username, String credentials)
null.authenticate in interface org.apache.catalina.Realmauthenticate in class org.apache.catalina.realm.RealmBaseusername - Username of the Principal to look upcredentials - Password or other credentials to use in authenticating this usernameprotected String getName()
getName in class org.apache.catalina.realm.RealmBaseprotected Principal getPrincipal(String username)
getPrincipal in class org.apache.catalina.realm.RealmBaseprotected String getPassword(String username)
getPassword in class org.apache.catalina.realm.RealmBasepublic boolean hasRole(org.apache.catalina.Wrapper wrapper,
Principal principal,
String role)
hasRole in interface org.apache.catalina.RealmhasRole in class org.apache.catalina.realm.RealmBaseCopyright © 2003–2018 University of Michigan. All rights reserved.