View Javadoc

1   /*
2    * Licensed to the Apache Software Foundation (ASF) under one or more
3    * contributor license agreements.  See the NOTICE file distributed with
4    * this work for additional information regarding copyright ownership.
5    * The ASF licenses this file to You under the Apache License, Version 2.0
6    * (the "License"); you may not use this file except in compliance with
7    * the License.  You may obtain a copy of the License at
8    * 
9    *      http://www.apache.org/licenses/LICENSE-2.0
10   * 
11   * Unless required by applicable law or agreed to in writing, software
12   * distributed under the License is distributed on an "AS IS" BASIS,
13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   * See the License for the specific language governing permissions and
15   * limitations under the License.
16   */
17  package org.apache.jetspeed.login;
18  
19  
20  /***
21   * LoginConstants
22   *
23   * @author <a href="mailto:ate@douma.nu">Ate Douma</a>
24   * @version $Id: LoginConstants.java 544402 2007-06-05 06:20:00Z taylor $
25   */
26  public final class LoginConstants
27  {
28      public final static String USERNAME    = "org.apache.jetspeed.login.username";
29      public final static String PASSWORD    = "org.apache.jetspeed.login.password";
30      public final static String DESTINATION = "org.apache.jetspeed.login.destination";
31      public final static String RETRYCOUNT  = "org.apache.jetspeed.login.retrycount";
32      public final static String ERRORCODE   = "org.apache.jetspeed.login.errorcode";
33      public final static String LOGIN_CHECK = "org.apache.jetspeed.login.check";
34      
35      public final static Integer ERROR_UNKNOWN_USER = new Integer(1);
36      public final static Integer ERROR_INVALID_PASSWORD = new Integer(2);
37      public final static Integer ERROR_USER_DISABLED = new Integer(3);
38      public final static Integer ERROR_FINAL_LOGIN_ATTEMPT = new Integer(4);
39      public final static Integer ERROR_CREDENTIAL_DISABLED = new Integer(5);
40      public final static Integer ERROR_CREDENTIAL_EXPIRED = new Integer(6);
41  }