View Javadoc

1   /*
2    * Copyright [2007] [University Corporation for Advanced Internet Development, Inc.]
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.apache.org/licenses/LICENSE-2.0
9    *
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 edu.internet2.middleware.shibboleth.idp.authn;
18  
19  /** Shibboleth SSO aware extension to {@link LoginContext}. */
20  public class ShibbolethSSOLoginContext extends LoginContext {
21  
22      /** Serial version UID. */
23      private static final long serialVersionUID = -8388394528549536613L;
24  
25      /** Service provider assertion consumer service URL. */
26      private String spAssertionConsumerService;
27  
28      /** Service provider target URL. */
29      private String spTarget;
30  
31      /** Constructor. */
32      public ShibbolethSSOLoginContext() {
33          super(false, false);
34      }
35  
36      /**
37       * Gets the service provider assertion consumer service URL.
38       * 
39       * @return service provider assertion consumer service URL
40       */
41      public synchronized String getSpAssertionConsumerService() {
42          return spAssertionConsumerService;
43      }
44  
45      /**
46       * Sets the service provider assertion consumer service URL.
47       * 
48       * @param url service provider assertion consumer service URL
49       */
50      public synchronized void setSpAssertionConsumerService(String url) {
51          spAssertionConsumerService = url;
52      }
53  
54      /**
55       * Gets the service provider target URL.
56       * 
57       * @return service provider target URL
58       */
59      public synchronized String getSpTarget() {
60          return spTarget;
61      }
62  
63      /**
64       * Sets the service provider target URL.
65       * 
66       * @param url service provider target URL
67       */
68      public synchronized void setSpTarget(String url) {
69          spTarget = url;
70      }
71  }