Enum TinkFipsUtil.AlgorithmFipsCompatibility
- java.lang.Object
-
- java.lang.Enum<TinkFipsUtil.AlgorithmFipsCompatibility>
-
- com.google.crypto.tink.config.internal.TinkFipsUtil.AlgorithmFipsCompatibility
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TinkFipsUtil.AlgorithmFipsCompatibility>
- Enclosing class:
- TinkFipsUtil
public static enum TinkFipsUtil.AlgorithmFipsCompatibility extends java.lang.Enum<TinkFipsUtil.AlgorithmFipsCompatibility>
The status of FIPS compatibility of an algorithm.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALGORITHM_NOT_FIPSThe algorithm is not FIPS compatibleALGORITHM_REQUIRES_BORINGCRYPTOThe algorithm has a FIPS validated implementation if BoringCrypto is available.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanisCompatible()static TinkFipsUtil.AlgorithmFipsCompatibilityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TinkFipsUtil.AlgorithmFipsCompatibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALGORITHM_NOT_FIPS
public static final TinkFipsUtil.AlgorithmFipsCompatibility ALGORITHM_NOT_FIPS
The algorithm is not FIPS compatible
-
ALGORITHM_REQUIRES_BORINGCRYPTO
public static final TinkFipsUtil.AlgorithmFipsCompatibility ALGORITHM_REQUIRES_BORINGCRYPTO
The algorithm has a FIPS validated implementation if BoringCrypto is available.
-
-
Method Detail
-
values
public static TinkFipsUtil.AlgorithmFipsCompatibility[] 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 (TinkFipsUtil.AlgorithmFipsCompatibility c : TinkFipsUtil.AlgorithmFipsCompatibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TinkFipsUtil.AlgorithmFipsCompatibility 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 namejava.lang.NullPointerException- if the argument is null
-
isCompatible
public abstract boolean isCompatible()
-
-