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, x509UsernameRetrieverClassName
AFTER_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, stopInternal
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
public Principal authenticate(Principal p)
authenticate
in interface CasRealm
p
- Principal to authenticate.public boolean hasRole(Principal principal, String role)
CasRealm
public 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.Realm
hasRole
in class org.apache.catalina.realm.RealmBase
public String toString()
toString
in class org.apache.catalina.realm.RealmBase
public String getInfo()
getInfo
in interface org.apache.catalina.Realm
getInfo
in class org.apache.catalina.realm.RealmBase
protected String getName()
getName
in class org.apache.catalina.realm.RealmBase
protected String getPassword(String userName)
getPassword
in class org.apache.catalina.realm.RealmBase
protected Principal getPrincipal(String userName)
getPrincipal
in class org.apache.catalina.realm.RealmBase
Copyright © 2006–2014 Jasig. All rights reserved.