public class PropertiesCasRealm extends AbstractCasRealm
Realm
that implements CasRealm
backed by properties file
containing usernames/and roles of the following format:
username1=role1,role2,role3 username2=role1 username3=role2,role3User authentication succeeds if the name of the given principal exists as a username in the properties file.
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 |
---|
PropertiesCasRealm() |
Modifier and Type | Method and Description |
---|---|
protected CasRealm |
getDelegate() |
void |
setPropertiesFilePath(String path) |
protected void |
startInternal() |
authenticate, getInfo, getName, getPassword, getPrincipal, getRoles, hasRole, hasRole, toString
addPropertyChangeListener, authenticate, authenticate, authenticate, authenticate, backgroundProcess, 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, stopInternal
destroyInternal, getDomain, getObjectName, postDeregister, postRegister, preDeregister, preRegister, register, setDomain, unregister
public void setPropertiesFilePath(String path)
path
- Path to properties file container username/role data.protected void startInternal() throws org.apache.catalina.LifecycleException
startInternal
in class org.apache.catalina.realm.RealmBase
org.apache.catalina.LifecycleException
protected CasRealm getDelegate()
getDelegate
in class AbstractCasRealm
CasRealm
operations are delegated to.Copyright © 2006–2014 Jasig. All rights reserved.