Class AuthConfig

java.lang.Object
org.glassfish.tyrus.client.auth.AuthConfig

@Beta public class AuthConfig extends Object
AuthConfig serves as a configuration of HTTP authentication.

An instance of this class can be created by AuthConfig and it must be registered to property bag in ClientManager.

Author:
Ondrej Kosatka
See Also:
  • Method Details

    • getAuthenticators

      public Map<String,Authenticator> getAuthenticators()
      Get an unmodifiable map of authenticators, where case insensitive authentication scheme to Authenticator.
      Returns:
      unmodifiable map of authenticators. Case insensitive authentication scheme is mapped to Authenticator.
    • builder

      public static AuthConfig.Builder builder()
      Create new AuthConfig.Builder instance, which contains provided Basic and Digest authenticators.
      Returns:
      builder instance.
    • toString

      public String toString()
      Overrides:
      toString in class Object