public abstract class AbstractCasRealm extends org.apache.catalina.realm.RealmBase implements CasRealm
Realm implementation for all CAS realms.allRolesMode, container, containerLog, digest, digestEncoding, info, md, md5Encoder, md5Helper, 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 |
|---|
AbstractCasRealm() |
| Modifier and Type | Method and Description |
|---|---|
Principal |
authenticate(Principal p)
Authenticates the given principal.
|
protected abstract CasRealm |
getDelegate() |
String |
getInfo() |
protected String |
getName() |
protected String |
getPassword(String userName) |
protected Principal |
getPrincipal(String userName) |
String[] |
getRoles(Principal p)
Gets the roles defined for the given principal.
|
boolean |
hasRole(Principal principal,
String role)
Determines whether the given principal possesses the given role.
|
boolean |
hasRole(org.apache.catalina.Wrapper wrapper,
Principal principal,
String role)
Tomcat 7.0.8 changed their APIs so
hasRole(java.security.Principal, String) is only valid for 7.0.7 and below. |
String |
toString() |
addPropertyChangeListener, authenticate, authenticate, authenticate, authenticate, backgroundProcess, compareCredentials, digest, Digest, findSecurityConstraints, getAllRolesMode, getContainer, getDigest, getDigest, getDigestCharset, getDigestEncoding, getDomainInternal, getObjectNameKeyProperties, getPrincipal, getPrincipal, getRealmPath, getRealmSuffix, getServer, getValidate, getX509UsernameRetrieverClassName, hasMessageDigest, hasResourcePermission, hasUserDataPermission, initInternal, isStripRealmForGss, main, removePropertyChangeListener, setAllRolesMode, setContainer, setDigest, setDigestEncoding, setRealmPath, setStripRealmForGss, setValidate, setX509UsernameRetrieverClassName, startInternal, stopInternaldestroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregisterpublic Principal authenticate(Principal p)
authenticate in interface CasRealmp - Principal to authenticate.public boolean hasRole(Principal principal, String role)
CasRealmpublic boolean hasRole(org.apache.catalina.Wrapper wrapper,
Principal principal,
String role)
hasRole(java.security.Principal, String) is only valid for 7.0.7 and below.hasRole in interface org.apache.catalina.RealmhasRole in class org.apache.catalina.realm.RealmBasepublic String toString()
toString in class org.apache.catalina.realm.RealmBasepublic String getInfo()
getInfo in interface org.apache.catalina.RealmgetInfo in class org.apache.catalina.realm.RealmBaseprotected String getName()
getName in class org.apache.catalina.realm.RealmBaseprotected String getPassword(String userName)
getPassword in class org.apache.catalina.realm.RealmBaseprotected Principal getPrincipal(String userName)
getPrincipal in class org.apache.catalina.realm.RealmBaseCopyright © 2006–2014 Jasig. All rights reserved.