01: /*
02: * Copyright 2005-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.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.opensource.org/licenses/ecl1.php
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: package org.kuali.core.service.impl;
17:
18: import javax.servlet.http.HttpServletRequest;
19:
20: import org.kuali.core.service.WebAuthenticationService;
21: import org.kuali.core.web.filter.UHCasFilter;
22:
23: import edu.iu.uis.eden.web.session.UserSession;
24:
25: /**
26: * This is the implementation of the WebAuthenticationService that is specific to the University of Hawaii. It uses UH's version of
27: * CAS.
28: *
29: *
30: */
31: public class WebAuthenticationServiceUHCasImpl implements
32: WebAuthenticationService {
33:
34: private boolean validatePassword = true;
35:
36: /**
37: * @see org.kuali.core.service.WebAuthenticationService#getNetworkId(javax.servlet.http.HttpServletRequest)
38: */
39: public String getNetworkId(HttpServletRequest request) {
40: return UHCasFilter.getRemoteUser(request);
41: }
42:
43: /**
44: * @see edu.iu.uis.eden.web.WebAuthenticationService#updateUserSession(edu.iu.uis.eden.web.session.UserSession,
45: * javax.servlet.http.HttpServletRequest)
46: */
47: public UserSession updateUserSession(UserSession userSession,
48: HttpServletRequest request) {
49: return userSession;
50: }
51:
52: public boolean isValidatePassword() {
53: return validatePassword;
54: }
55:
56: public void setValidatePassword(boolean validatePassword) {
57: this.validatePassword = validatePassword;
58: }
59: }
|