01: /*
02: * Copyright 2002-2005 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package info.jtrac.acegi;
18:
19: import org.acegisecurity.providers.cas.ticketvalidator.CasProxyTicketValidator;
20:
21: /**
22: * class that exists purely to add a couple of setters to the Acegi CasProxyTicketValidator
23: * so that the loginUrl ' logoutUrl can be also included in the applicationContext-acegi-cas.xml
24: * since we use Wicket, we don't need the CasProcessingFilterEntryPoint
25: * kind of a hack, would have been much better to use the JtracConfigurer + properties file
26: * but people who want to use CAS are assumed to be good at hacking XML :)
27: * plus Acegi seems to be undergoing a major overhaul at the moment as well
28: * and haven't yet looked at CAS 3 yet
29: */
30: public class JtracCasProxyTicketValidator extends
31: CasProxyTicketValidator {
32:
33: private String loginUrl;
34: private String logoutUrl;
35:
36: public String getLoginUrl() {
37: return loginUrl;
38: }
39:
40: public void setLoginUrl(String loginUrl) {
41: this .loginUrl = loginUrl;
42: }
43:
44: public String getLogoutUrl() {
45: return logoutUrl;
46: }
47:
48: public void setLogoutUrl(String logoutUrl) {
49: this.logoutUrl = logoutUrl;
50: }
51:
52: }
|