Enum AuthenticationControl
- java.lang.Object
-
- java.lang.Enum<AuthenticationControl>
-
- org.apache.archiva.redback.authentication.AuthenticationControl
-
- All Implemented Interfaces:
Serializable
,Comparable<AuthenticationControl>
public enum AuthenticationControl extends Enum<AuthenticationControl>
These have the same meaning as for PAM modules- required
- If a ‘required’ module returns a status that is not ‘success’, the operation will ultimately fail, but only after the modules below it are invoked. This seems senseless at first glance I suppose, but it serves the purpose of always acting the same way from the point of view of the user trying to utilize the service. The net effect is that it becomes impossible for a potential cracker to determine which module caused the failure – and the less information a malicious user has about your system, the better. Important to note is that even if all of the modules in the stack succeed, failure of one ‘required’ module means the operation will ultimately fail. Of course, if a required module succeeds, the operation can still fail if a ‘required’ module later in the stack fails.
- requisite
- If a ‘requisite’ module fails, the operation not only fails, but the operation is immediately terminated with a failure without invoking any other modules: ‘do not pass go, do not collect $200’, so to speak.
- sufficient
- If a sufficient module succeeds, it is enough to satisfy the requirements of sufficient modules in that realm for use of the service, and modules below it that are also listed as ‘sufficient’ are not invoked. If it fails, the operation fails unless a module invoked after it succeeds. Important to note is that if a ‘required’ module fails before a ‘sufficient’ one succeeds, the operation will fail anyway, ignoring the status of any ‘sufficient’ modules.
- optional
- An ‘optional’ module, according to the pam(8) manpage, will only cause an operation to fail if it’s the only module in the stack for that facility.
- Since:
- 3.0
- Author:
- Martin Stockhammer
-
-
Enum Constant Summary
Enum Constants Enum Constant Description OPTIONAL
REQUIRED
REQUISITE
SUFFICIENT
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthenticationControl
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthenticationControl[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUFFICIENT
public static final AuthenticationControl SUFFICIENT
-
OPTIONAL
public static final AuthenticationControl OPTIONAL
-
REQUIRED
public static final AuthenticationControl REQUIRED
-
REQUISITE
public static final AuthenticationControl REQUISITE
-
-
Method Detail
-
values
public static AuthenticationControl[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthenticationControl c : AuthenticationControl.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthenticationControl valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-