Package edu.vt.middleware.ldap.ed
Enum MultiFactorType
- java.lang.Object
-
- java.lang.Enum<MultiFactorType>
-
- edu.vt.middleware.ldap.ed.MultiFactorType
-
- All Implemented Interfaces:
Serializable
,Comparable<MultiFactorType>
public enum MultiFactorType extends Enum<MultiFactorType>
Represents types of multi-factor authentication supported by this library- DUO
- TOKENS
- Author:
- Middleware Services
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MultiFactorType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MultiFactorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DUO
public static final MultiFactorType DUO
Direct DUO integration with your second factor.
-
TOKENS
public static final MultiFactorType TOKENS
Multi-factor using ED Web Services /tokens endpoint.
-
-
Method Detail
-
values
public static MultiFactorType[] 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 (MultiFactorType c : MultiFactorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MultiFactorType 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
-
-