View Javadoc

1   /*
2    * Copyright (c) 2007 Creative Sphere Limited.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *
10   *   Creative Sphere - initial API and implementation
11   *
12   */
13  package org.abstracthorizon.danube.http.auth;
14  
15  import org.abstracthorizon.pasulj.PasuljInfo;
16  
17  /**
18   * Bean info for {@link JAASAuthenticator} class
19   *
20   * @author Daniel Sendula
21   */
22  public class JAASAuthenticatorBeanInfo extends PasuljInfo {
23  
24      /**
25       * Consntructor
26       */
27      public JAASAuthenticatorBeanInfo() {
28          this(JAASAuthenticator.class);
29      }
30  
31      /**
32       * Constructor
33       * @param cls class
34       */
35      protected JAASAuthenticatorBeanInfo(Class<?> cls) {
36          super(cls);
37      }
38  
39      /**
40       * Init method
41       */
42      public void init() {
43  
44          addProperty("handler", "Connection handler");
45  
46          addProperty("sessionManager", "HTTP session manager");
47  
48          addProperty("realm", "HTTP digest realm");
49  
50          addProperty("loginContextName", "Login context name to be used");
51  
52          addProperty("loginContext", "Login context", true, false);
53  
54          addProperty("cacheTimeout", "Subject to auth strings cache timeout in milliseconds", true, false);
55  
56          addProperty("minimumScanPeriod", "Minimum scan period for purging cache in milliseconds", true, false);
57      }
58  
59  }