Class TinkFipsUtil
- java.lang.Object
-
- com.google.crypto.tink.config.internal.TinkFipsUtil
-
public final class TinkFipsUtil extends java.lang.ObjectStatic methods for checking if Tink was built in FIPS mode and to check for algorithm compatibility.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTinkFipsUtil.AlgorithmFipsCompatibilityThe status of FIPS compatibility of an algorithm.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanfipsModuleAvailable()static voidsetFipsRestricted()Sets the binary to FIPS-only restricted mode.static voidunsetFipsRestricted()This method is only exposed for tests and should not be used to disable the FIPS restrictions.static booleanuseOnlyFips()
-
-
-
Method Detail
-
setFipsRestricted
public static void setFipsRestricted() throws java.security.GeneralSecurityExceptionSets the binary to FIPS-only restricted mode. Fails if no FIPS-mode is available.- Throws:
java.security.GeneralSecurityException
-
unsetFipsRestricted
public static void unsetFipsRestricted()
This method is only exposed for tests and should not be used to disable the FIPS restrictions.
-
useOnlyFips
public static boolean useOnlyFips()
-
fipsModuleAvailable
public static boolean fipsModuleAvailable()
-
-