package com.airlock.iam.oauth2.application.configuration.introspection;

import com.airlock.iam.oauth2.api.domain.model.clientauthentication.ClientAuthenticationMethod;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.nio.charset.Charset;
import java.util.List;

public interface BasicAuthTokenIntrospectionAuthenticationConfig {
   Charset getCharset();

   List<BasicAuthTokenIntrospectionAuthenticationConfig.UsernamePasswordCombination> getUsernamePasswordCombinations();

   ClientAuthenticationMethod clientAuthenticationMethod();

   final class UsernamePasswordCombination {
      private final String username;
      private final String password;

      @SuppressFBWarnings(justification = "generated code")
      public UsernamePasswordCombination(String username, String password) {
         this.username = username;
         this.password = password;
      }

      @SuppressFBWarnings(justification = "generated code")
      public String getUsername() {
         return this.username;
      }

      @SuppressFBWarnings(justification = "generated code")
      public String getPassword() {
         return this.password;
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public boolean equals(Object o) {
         if (o == this) {
            return true;
         } else if (!(o instanceof BasicAuthTokenIntrospectionAuthenticationConfig.UsernamePasswordCombination other)) {
            return false;
         } else {
            Object this$username = this.username;
            Object other$username = other.username;
            if (this$username == null ? other$username == null : this$username.equals(other$username)) {
               Object this$password = this.password;
               Object other$password = other.password;
               return this$password == null ? other$password == null : this$password.equals(other$password);
            } else {
               return false;
            }
         }
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public int hashCode() {
         int PRIME = 59;
         int result = 1;
         Object $username = this.username;
         result = result * 59 + ($username == null ? 43 : $username.hashCode());
         Object $password = this.password;
         return result * 59 + ($password == null ? 43 : $password.hashCode());
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "BasicAuthTokenIntrospectionAuthenticationConfig.UsernamePasswordCombination(username="
            + this.getUsername()
            + ", password="
            + this.getPassword()
            + ")";
      }
   }
}
