com.acsinet_solutions.cetia4.controller
Enum LoginType

java.lang.Object
  extended by java.lang.Enum<LoginType>
      extended by com.acsinet_solutions.cetia4.controller.LoginType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LoginType>

public enum LoginType
extends java.lang.Enum<LoginType>

Ways in which authentication can be performed on an application

Author:
Santiago Arriaga
See Also:
Configuration.LOGIN_TYPE_PARAM, RestServlet

Enum Constant Summary
ALWAYS
          Always uses a login for performing authentication; very useful for development phases.
BASIC
          Basic authentication performed in a not standard way.
CONTAINER
          Standard Servlet / J2EE authentication defined in web.xml and in the container administrative facilities.
FORM
          Form authentication performed in a not standard way.
NONE
          No authentication mechanisms or the framework servlets are not aware of authentication mechanisms
 
Method Summary
static LoginType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LoginType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NONE

public static final LoginType NONE
No authentication mechanisms or the framework servlets are not aware of authentication mechanisms


CONTAINER

public static final LoginType CONTAINER
Standard Servlet / J2EE authentication defined in web.xml and in the container administrative facilities. The security service that will be implemented in the framework will provide an extension to these facilities. This is the recommended approach for applications that require to enable security within them.


BASIC

public static final LoginType BASIC
Basic authentication performed in a not standard way. Currently not implemeted.


FORM

public static final LoginType FORM
Form authentication performed in a not standard way. Currently not implemented. This authentication method was completely supported in previous releases of the framework, when container authentication implementations were not convenient or useful. In this version it was not implemented, but code may be included if really needed.


ALWAYS

public static final LoginType ALWAYS
Always uses a login for performing authentication; very useful for development phases.

Method Detail

values

public static final LoginType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(LoginType c : LoginType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static LoginType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name