Back Forum Reply New

Dear all, how to delete the userCache in acegi conf?

Dear all,

For some reason, I don't need the userCache in acegi, original i have it, but now i want to delete.

Is it enough to delete userCache in acegi configuration xml?

Any idea, thanks in advance.

the applicationContext.xml is in below:lt;?xml version=quot;1.0quot; encoding=quot;UTF-8quot;?gt;

lt;beans xmlns=quot;schema/beansquot; xmlns:xsi=quot;2001/XMLSchema-instancequot;
xmlns=quot;schema/pquot; xmlns:aop=quot;schema/aopquot;
xmlns:context=quot;schema/contextquot; xmlns:jee=quot;schema/jeequot;
xmlns:tx=quot;schema/txquot;
xsi:schemaLocation=quot;schema/aop schem...ng-aop-2.5.xsd
schema/beans schem...-beans-2.5.xsd
schema/context schem...ontext-2.5.xsd
schema/jee schem...ng-jee-2.5.xsd
schema/tx schema/tx/spring-tx-2.5.xsdquot;gt;

lt;bean id=quot;authenticationEventListenerquot; class=quot;sg.sphsearch.auth.AuthenticationEventListen erquot;/gt;

lt;!-- acegi config --gt;
lt;!-- Proxy to a set of filters that enforce authentication and authorization. --gt;
lt;bean id=quot;filterChainProxyquot; class=quot;org.acegisecurity.util.FilterChainProxyquot;gt;
lt;property name=quot;filterInvocationDefinitionSourcequot;gt;
lt;valuegt;
CONVERT_ucl_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/**=fromSessionContextIntegrationFilter
lt;!--,concurrentSessionFilter--gt;
lt;/valuegt;
lt;/propertygt;
lt;/beangt;

lt;!-- Maintains security context between requests (using the session). --gt;
lt;bean id=quot;fromSessionContextIntegrationFilterquot; class=quot;org.acegisecurity.context.fromSessionContex tIntegrationFilterquot;gt;
lt;property name=quot;forceEagerSessionCreationquot; value=quot;truequot;/gt;
lt;/beangt;lt;!--bean id=quot;concurrentSessionFilterquot; class=quot;org.acegisecurity.concurrent.ConcurrentSess ionFilterquot;gt;
lt;property name=quot;expireduclquot; value=quot;/quot;/gt;
lt;property name=quot;sessionRegistryquot; ref=quot;sessionRegistryquot;/gt;
lt;/bean--gt;

lt;!--bean id=quot;concurrentSessionControllerquot; class=quot;org.acegisecurity.concurrent.ConcurrentSess ionControllerImplquot;gt;
lt;property name=quot;maximumSessionsquot; value=quot;1quot;/gt;
lt;property name=quot;sessionRegistryquot; ref=quot;sessionRegistryquot;/gt;
lt;property name=quot;exceptionIfMaximumExceededquot; value=quot;truequot;/gt;
lt;property name=quot;messageSourcequot; ref=quot;messageSourcequot;/gt;
lt;/bean--gt;

lt;!--bean id=quot;messageSourcequot;
class=quot;org..context.support.Resourc eBundleMessageSourcequot;
p:basename=quot;messagesquot;/--gt;lt;!--bean id=quot;sessionRegistryquot; class=quot;org.acegisecurity.concurrent.SessionRegistr yImplquot;/--gt;

lt;!-- Users cache for Acegi (Ehcache). --gt;
lt;!--bean id=quot;userCachequot; class=quot;org.acegisecurity.providers.dao.cache.EhCac heBasedUserCachequot;gt;
lt;property name=quot;cachequot;gt;
lt;bean class=quot;org..cache.ehcache.EhCacheFa ctoryBeanquot;gt;
lt;property name=quot;cacheManagerquot; ref=quot;cacheManagerquot;/gt;
lt;property name=quot;cacheNamequot; value=quot;dira.USER_CACHEquot;/gt;
lt;/beangt;
lt;/propertygt;
lt;/beangt;

lt;bean id=quot;cacheManagerquot; class=quot;org..cache.ehcache.EhCacheMa nagerFactoryBeanquot;gt;
lt;property name=quot;configLocationquot;gt;
lt;valuegt;classpath:ehcache-failsafe.xmllt;/valuegt;
lt;/propertygt;
lt;/bean--gt;

lt;bean id=quot;testAuthenticationProviderquot; class=quot;org.acegisecurity.providers.TestingAuthenti cationProviderquot;/gt;

lt;bean id=quot;userDetailsServicequot; class=quot;sg.sphsearch.auth.dao.jpa.UserDaoImplquot; /gt;

lt;bean id=quot;strongPasswordEncryptorquot; class=quot;org.jasypt.util.password.StrongPasswordEncr yptorquot; /gt;

lt;bean id=quot;standardStringDigesterquot; class=quot;org.jasypt.digest.StandardStringDigesterquot; gt;
lt;property name=quot;algorithmquot; value=quot;SHA-256quot; /gt;
lt;property name=quot;iterationsquot; value=quot;100000quot; /gt;
lt;/beangt;

lt;bean id=quot;passwordEncoderquot; class=quot;org.jasypt.spring.security.PasswordEncoderquot; gt;
lt;property name=quot;passwordEncryptorquot; ref=quot;strongPasswordEncryptorquot; /gt;
lt;/beangt;

lt;bean id=quot;daoAuthenticationProviderquot; class=quot;org.acegisecurity.providers.dao.DaoAuthenti cationProviderquot;gt;
lt;property name=quot;passwordEncoderquot; ref=quot;passwordEncoderquot; /gt;
lt;property name=quot;userDetailsServicequot; ref=quot;userDetailsServicequot;/gt;
lt;!--property name=quot;userCachequot; ref=quot;userCachequot;/--gt;
lt;/beangt;

lt;!-- to vaildate users only, not for system authentication --gt;
lt;bean id=quot;userValidatorquot; class=quot;org.acegisecurity.providers.ProviderManager quot;gt;
lt;property name=quot;providersquot;gt;
lt;listgt;
lt;ref local=quot;daoAuthenticationProviderquot;/gt;
lt;/listgt;
lt;/propertygt;
lt;/beangt;

lt;bean id=quot;authenticationManagerquot; class=quot;org.acegisecurity.providers.ProviderManager quot;gt;
lt;property name=quot;providersquot;gt;
lt;listgt;
lt;ref local=quot;daoAuthenticationProviderquot;/gt;
lt;/listgt;
lt;/propertygt;
lt;/beangt;

lt;bean id=quot;standardPBEStringEncryptorquot; class=quot;org.jasypt.encryption.pbe.StandardPBEString Encryptorquot;gt;
lt;property name=quot;passwordquot;gt;
lt;valuegt;greggreglt;/valuegt;
lt;/propertygt;
lt;/beangt;

lt;/beansgt;
¥
Back Forum Reply New