All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sentry.transport.AuthenticatorWrapper Maven / Gradle / Ivy

There is a newer version: 8.0.0-rc.3
Show newest version
package io.sentry.transport;

import java.net.Authenticator;
import org.jetbrains.annotations.NotNull;

/** Wraps {@link Authenticator} in order to make classes that use it testable. */
final class AuthenticatorWrapper {
  private static final AuthenticatorWrapper instance = new AuthenticatorWrapper();

  public static AuthenticatorWrapper getInstance() {
    return instance;
  }

  private AuthenticatorWrapper() {}

  public void setDefault(final @NotNull Authenticator authenticator) {
    Authenticator.setDefault(authenticator);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy