Yeah it evaluates the multiplication.
We have:
#{ ${rememberMeDuration:1209600} * 1000 }
which tells spring "Hey! Please evaluate this as Spring Expression Language.
Spring dutifully does as asked and begins evaluating.
In this case, we have a multiplication operation between two values. One
variable and one constant.
The expression: ${rememberMeDuration:1209600} says "Use the value of
rememberMeDuration if it exists, otherwise use 1209600".
Assuming there is no value for rememberMeDuration, the expression becomes:
#{ 1209600 * 1000 }"
which kicks out a value of 1209600000.
Which means that the expression you have there without a rememberMeDuration
would be equivalent to:
<bean id="longTermSessionTGTExpirationPolicy"
class="org.jasig.cas.ticket.support.TimeoutExpirationPolicy"
c:timeToKillInMilliSeconds="1209600000" />
If you have a value in rememberMeDuration, it would of course use that
instead.
On Wed, Aug 31, 2016 at 3:14 PM vallee.romain <[email protected]>
wrote:
> Hello Mister Olson,
> it is for the multiplication ?
>
>
> Le mercredi 31 août 2016 14:33:56 UTC+2, Alex Olson a écrit :
>
>> It means "evaluate whats inside the #{} as Spring Expression Language:
>>
>> http://docs.spring.io/spring/docs/current/spring-framework-reference/html/expressions.html#expressions-beandef
>>
>> On Wed, Aug 31, 2016 at 2:20 PM vallee.romain <[email protected]>
>> wrote:
>>
> Hello cas users,
>>>
>>> just for know :
>>>
>>> in this page
>>> https://apereo.github.io/cas/4.1.x/installation/Configuring-LongTerm-Authentication.html
>>>
>>> we can see
>>>
>>> <bean id="longTermSessionTGTExpirationPolicy"
>>> class="org.jasig.cas.ticket.support.TimeoutExpirationPolicy"
>>> c:timeToKillInMilliSeconds="#{ ${rememberMeDuration:1209600} * 1000
>>> }" />
>>>
>>>
>>> what # does it mean ? in c:timeToKillInMilliSeconds ?
>>>
>>> Best regards
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CAS Community" group.
>>>
>> To unsubscribe from this group and stop receiving emails from it, send an
>>> email to [email protected].
>>> To post to this group, send email to [email protected].
>>
>>
>>> Visit this group at
>>> https://groups.google.com/a/apereo.org/group/cas-user/.
>>> To view this discussion on the web visit
>>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/6b2a31e7-f7d0-4e91-af07-a321d964d2cf%40apereo.org
>>> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/6b2a31e7-f7d0-4e91-af07-a321d964d2cf%40apereo.org?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/a/apereo.org/d/optout.
>>>
>> --
>> -- Alex
>>
> --
> You received this message because you are subscribed to the Google Groups
> "CAS Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/
> .
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/b7cbbd1f-a20f-43f5-a016-8470965b088d%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/b7cbbd1f-a20f-43f5-a016-8470965b088d%40apereo.org?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/a/apereo.org/d/optout.
>
--
-- Alex
--
You received this message because you are subscribed to the Google Groups "CAS
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAAXiHZ56-sQeAYvfc%3DAq4-kaCQigacpzsBDQxBNWbNLV2xc9zQ%40mail.gmail.com.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.