public static void register() throws GeneralSecurityException {
    // Register primitive wrappers.
    com.google.crypto.tink.keyderivation.internal.KeysetDeriverWrapper.register();

    if (TinkFips.useOnlyFips()) {
      // If Tink is built in FIPS-mode do not register algorithms which are not compatible.
      // Currently there are no FIPS-compliant key derivation primitives available, therefore no
      // key manager will be registered.
      return;
    }

    // Register required key manager for PrfBasedDeriverKeyManager.
    HkdfPrfKeyManager.register(/* newKeyAllowed= */ true);

    // Register key managers.
    PrfBasedDeriverKeyManager.register(/* newKeyAllowed= */ true);
  }
Tries to register with the {@link com.google.crypto.tink.Registry} all instances of {@link
com.google.crypto.tink.KeyManager} needed to handle KeysetDeriver key types supported in Tink.
java_src/src/main/java/com/google/crypto/tink/keyderivation/KeyDerivationConfig.java