package com.airlock.iam.common.domain.model.jwt;

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

public final class JwtKeys {
   private final String hmacKey;
   private final String encryptionKey;

   public static JwtKeys jwtKeys(String hmacKey, String encryptionKey) {
      return new JwtKeys(hmacKey, encryptionKey);
   }

   private JwtKeys(String hmacKey, String encryptionKey) {
      this.hmacKey = hmacKey;
      this.encryptionKey = encryptionKey;
   }

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

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

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "JwtKeys(hmacKey=" + this.hmacKey() + ", encryptionKey=" + this.encryptionKey() + ")";
   }
}
