Class SpringSecurityLoaderImpl

java.lang.Object
com.randomnoun.common.security.impl.SpringSecurityLoaderImpl
All Implemented Interfaces:
SecurityLoader

public class SpringSecurityLoaderImpl extends Object implements SecurityLoader
An implementation of the SecurityLoader class, using the Spring framework to populate the SecurityContext from a JDBC datasource.

This security context used to optionally take a customerId (used to partition users across separate SaaS contexts), or an applicationId (used to partition permissions across separate software products). If not defined, then these columns did not need to be present in the database. This functionality has been deprecated.

I think we had String userids at one point as well, so look out for that.

This class has a number of initialisation properties that are specific to this class (in addition to those initialisation properties that are set by the SecurityContext itself):

  • INIT_JDBCTEMPLATE - The Spring JdbcTemplate class used to retrieve information from a database.
  • INIT_DATABASE_VENDOR - Set to one of the SqlGenerator.DATABASE_* constants, which specifies what syntax of SQL to use (DB2, Oracle or SqlServer).
Author:
knoxg