Hi, The Cas20ServiceTicketValidator is meant to be a singleton and you can call it multiple times safely. It's the way it's used in other frameworks like Spring Security and Shiro.
Best regards, Jérôme LELEU Founder of CAS in the cloud: www.casinthecloud.com | Twitter: @leleuj Chairman of CAS: www.jasig.org/cas | Creator of pac4j: www.pac4j.org 2014-09-12 13:44 GMT+02:00 Stoysky <sven...@gmail.com>: > Hello, > > We would like to use CAS 4.0.0 and we are trying it now. We use the CAS > REST API for login/logout/ticket validation. We would like to use > Cas20ServiceTicketValidator > from cas-client-core 3.3.3 to validate our tickets. > > My questions is it "cheap" to create new instance of > Cas20ServiceTicketValidator for every validaiton request? If not and we > have to reuse one and the same instance is Cas20ServiceTicketValidator > thread safe or do we have to take care about some synchronized access > ourselves? > > Thank you very much for your help. > > -- > You are currently subscribed to cas-user@lists.jasig.org as: lel...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user