org.jbpm.integration.tomcat6
Class JbpmConsoleRealm
java.lang.Object
org.apache.catalina.realm.RealmBase
org.jbpm.integration.tomcat6.JbpmConsoleRealm
- All Implemented Interfaces:
- javax.management.MBeanRegistration, org.apache.catalina.Lifecycle, org.apache.catalina.Realm
public class JbpmConsoleRealm
- extends org.apache.catalina.realm.RealmBase
Basic implementation of a Realm authenticator for the jBPM identity tables using plain JDBC
queries.
The default provided JDBCRealm cannot be used, since the tables need to follow a schema which
does not map to the jBPM identity tables.
This code is based on the JDBCRealm code.
- Author:
- Joram Barrez, Alejandro Guizar
- See Also:
- Realm How-To
| Nested classes/interfaces inherited from class org.apache.catalina.realm.RealmBase |
org.apache.catalina.realm.RealmBase.AllRolesMode |
| Fields inherited from class org.apache.catalina.realm.RealmBase |
allRolesMode, container, containerLog, controller, digest, digestEncoding, domain, host, info, initialized, lifecycle, md, md5Encoder, md5Helper, mserver, oname, path, realmPath, sm, started, support, type, validate |
| Fields inherited from interface org.apache.catalina.Lifecycle |
AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, DESTROY_EVENT, INIT_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT |
| Methods inherited from class org.apache.catalina.realm.RealmBase |
addLifecycleListener, addPropertyChangeListener, authenticate, backgroundProcess, destroy, digest, Digest, findLifecycleListeners, findSecurityConstraints, getAllRolesMode, getContainer, getController, getDigest, getDigest, getDigestEncoding, getDomain, getObjectName, getPrincipal, getRealmPath, getRealmSuffix, getType, getValidate, hasMessageDigest, hasResourcePermission, hasRole, hasUserDataPermission, init, main, postDeregister, postRegister, preDeregister, preRegister, removeLifecycleListener, removePropertyChangeListener, setAllRolesMode, setContainer, setController, setDigest, setDigestEncoding, setRealmPath, setValidate, start, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JbpmConsoleRealm
public JbpmConsoleRealm()
authenticate
public java.security.Principal authenticate(java.lang.String user,
java.lang.String credentials)
- Specified by:
authenticate in interface org.apache.catalina.Realm- Overrides:
authenticate in class org.apache.catalina.realm.RealmBase
authenticate
public java.security.Principal authenticate(java.lang.String user,
byte[] credentials)
- Specified by:
authenticate in interface org.apache.catalina.Realm- Overrides:
authenticate in class org.apache.catalina.realm.RealmBase
authenticate
public java.security.Principal authenticate(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4,
java.lang.String arg5,
java.lang.String arg6,
java.lang.String arg7)
- Specified by:
authenticate in interface org.apache.catalina.Realm- Overrides:
authenticate in class org.apache.catalina.realm.RealmBase
getPassword
protected java.lang.String getPassword(java.lang.String username)
- Return the password associated with the principal user name.
- Specified by:
getPassword in class org.apache.catalina.realm.RealmBase
getPrincipal
protected java.security.Principal getPrincipal(java.lang.String userName)
- Return the principal associated with the given username.
- Specified by:
getPrincipal in class org.apache.catalina.realm.RealmBase
getName
protected java.lang.String getName()
- Specified by:
getName in class org.apache.catalina.realm.RealmBase
getInfo
public java.lang.String getInfo()
- Specified by:
getInfo in interface org.apache.catalina.Realm- Overrides:
getInfo in class org.apache.catalina.realm.RealmBase
getDataSourceName
public java.lang.String getDataSourceName()
setDataSourceName
public void setDataSourceName(java.lang.String dataSourceName)
getDriverName
public java.lang.String getDriverName()
setDriverName
public void setDriverName(java.lang.String driverName)
getConnectionUrl
public java.lang.String getConnectionUrl()
setConnectionUrl
public void setConnectionUrl(java.lang.String connectionUrl)
getConnectionName
public java.lang.String getConnectionName()
setConnectionName
public void setConnectionName(java.lang.String connectionName)
getConnectionPassword
public java.lang.String getConnectionPassword()
setConnectionPassword
public void setConnectionPassword(java.lang.String connectionPassword)
Copyright © 2010 JBoss Community. All Rights Reserved.