public static enum Factor.TotpAlgorithms extends Enum<Factor.TotpAlgorithms>
Modifier and Type | Method and Description |
---|---|
static Factor.TotpAlgorithms |
forValue(String value)
Generate a TotpAlgorithms from a string.
|
String |
toString() |
static Factor.TotpAlgorithms |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Factor.TotpAlgorithms[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Factor.TotpAlgorithms SHA1
public static final Factor.TotpAlgorithms SHA256
public static final Factor.TotpAlgorithms SHA512
public static Factor.TotpAlgorithms[] values()
for (Factor.TotpAlgorithms c : Factor.TotpAlgorithms.values()) System.out.println(c);
public static Factor.TotpAlgorithms valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<Factor.TotpAlgorithms>
public static Factor.TotpAlgorithms forValue(String value)
value
- string valueCopyright © 2019 Twilio, Inc. All Rights Reserved.