java_src/src/main/java/com/google/crypto/tink/Registry.java
/**
   * Tries to enable the FIPS restrictions if the Registry is empty.
   *
   * @throws GeneralSecurityException if any key manager has already been registered.
   */
Tries to enable the FIPS restrictions if the Registry is empty.
@throws GeneralSecurityException if any key manager has already been registered.
Tries to enable the FIPS restrictions if the Registry is empty . @throws GeneralSecurityException if any key manager has already been registered .
public static synchronized <P> void restrictToFipsIfEmpty() throws GeneralSecurityException {
    if (keyManagerMap.isEmpty()) {
      TinkFipsUtil.setFipsRestricted();
      return;
    }
    throw new GeneralSecurityException("Could not enable FIPS mode as Registry is not empty.");
  }
public static synchronized < P > void restrictToFipsIfEmpty ( ) throws GeneralSecurityException { if ( keyManagerMap . isEmpty ( ) ) { TinkFipsUtil . setFipsRestricted ( ) ; return ; } throw new GeneralSecurityException ( "Could not enable FIPS mode as Registry is not empty." ) ; }
Tries to enable the FIPS restrictions if the Registry is empty.
Tries to enable the FIPS restrictions if the Registry is empty .