public static void register() throws GeneralSecurityException {
    AeadWrapper.register();

    MacConfig.register();
    AesCtrHmacAeadKeyManager.register(/*newKeyAllowed=*/ true);
    AesGcmKeyManager.register(/*newKeyAllowed=*/ true);

    if (TinkFips.useOnlyFips()) {
      // If Tink is built in FIPS-mode do not register algorithms which are not compatible.
      return;
    }

    AesEaxKeyManager.register(/*newKeyAllowed=*/ true);
    AesGcmSivKeyManager.register(/*newKeyAllowed=*/ true);
    ChaCha20Poly1305KeyManager.register(/*newKeyAllowed=*/ true);
    KmsAeadKeyManager.register(/*newKeyAllowed=*/ true);
    KmsEnvelopeAeadKeyManager.register(/*newKeyAllowed=*/ true);
    XChaCha20Poly1305KeyManager.register(/*newKeyAllowed=*/ true);
  }
Tries to register with the {@link com.google.crypto.tink.Registry} all instances of {@link
com.google.crypto.tink.Catalogue} and {@link com.google.crypto.tink.KeyManager} needed to
handle Aead key types supported in Tink.

<p>Because Aead key types depend on {@link com.google.crypto.tink.Mac} key types, this method
also registers all Mac catalogues and key managers.

@since 1.2.0
java_src/src/main/java/com/google/crypto/tink/aead/AeadConfig.java