Thank you for your help. In the end I have added the value to the cas.properties file (a boolean value) and I access it via annotations. It even recognizes it as a boolean value!
In securityContext I have needed to add context namespace and schemmas: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:sec="http://www.springframework.org/schema/security" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <context:annotation-config/> In my handler, which is the place where I want to use the configuration parameter, I have put: @Value( "${uoc.addCampusSession:false}" ) private boolean myParam; public boolean authenticate( Credentials credentials) throws org.jasig.cas.authentication.handler.AuthenticationException Very useful the tip of the default value. Thanks. -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
