package com.airlock.iam.flow.shared.domain.model.captcha;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public final class CaptchaCredentials {
   private final String siteKey;
   private final String secretKey;

   @SuppressFBWarnings(justification = "generated code")
   public CaptchaCredentials(String siteKey, String secretKey) {
      this.siteKey = siteKey;
      this.secretKey = secretKey;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "CaptchaCredentials(siteKey=" + this.getSiteKey() + ", secretKey=" + this.getSecretKey() + ")";
   }
}
