java.lang.Object
org.apache.catalina.realm.RealmBase
org.securityfilter.example.realm.catalina.TrivialCatalinaRealm
- All Implemented Interfaces:
- org.apache.catalina.Lifecycle, javax.management.MBeanRegistration, org.apache.catalina.Realm
- public class TrivialCatalinaRealm
- extends org.apache.catalina.realm.RealmBase
TrivialCatalinaRealm - Trivial Catalina Realm implementation to demonstrate
org.securityfilter.realm.catalina.CatalinaRealmAdapter adapter class.
- Version:
- $Revision: 1.2 $ $Date: 2003/06/09 11:26:43 $
| Fields inherited from class org.apache.catalina.realm.RealmBase |
container, containerLog, controller, digest, digestEncoding, domain, host, info, initialized, lifecycle, md, md5Encoder, md5Helper, mserver, oname, path, sm, started, support, type, validate |
| Methods inherited from class org.apache.catalina.realm.RealmBase |
addLifecycleListener, addPropertyChangeListener, authenticate, authenticate, authenticate, authenticate, backgroundProcess, destroy, digest, Digest, findLifecycleListeners, findSecurityConstraints, getContainer, getController, getDigest, getDigest, getDigestEncoding, getDomain, getInfo, getObjectName, getType, getValidate, hasMessageDigest, hasResourcePermission, hasRole, hasUserDataPermission, init, main, postDeregister, postRegister, preDeregister, preRegister, removeLifecycleListener, removePropertyChangeListener, setContainer, setController, setDigest, setDigestEncoding, setValidate, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exampleProperty
private java.lang.String exampleProperty
TrivialCatalinaRealm
public TrivialCatalinaRealm()
getName
protected java.lang.String getName()
- Return a short name for this Realm implementation.
getPassword
protected java.lang.String getPassword(java.lang.String s)
- Return the password associated with the given principal's user name.
getPrincipal
protected java.security.Principal getPrincipal(java.lang.String s)
- Return the Principal associated with the given user name.
setExampleProperty
public void setExampleProperty(java.lang.String value)
- Setter for exampleProperty to deomonstrate setting realm properties from config file.
This has no effect other than printing a message when the property is set.
getExampleProperty
public java.lang.String getExampleProperty()
- Getter for exampleProperty.