001package com.box.sdkgen.box.jwtauth;
002
003import com.box.sdkgen.internal.SerializableObject;
004import com.fasterxml.jackson.annotation.JsonFilter;
005import com.fasterxml.jackson.annotation.JsonProperty;
006import java.util.Objects;
007
008@JsonFilter("nullablePropertyFilter")
009public class JwtConfigAppSettingsAppAuth extends SerializableObject {
010
011  /** Public key ID */
012  @JsonProperty("publicKeyID")
013  protected final String publicKeyId;
014
015  /** Private key */
016  protected final String privateKey;
017
018  /** Passphrase */
019  protected final String passphrase;
020
021  public JwtConfigAppSettingsAppAuth(
022      @JsonProperty("publicKeyID") String publicKeyId,
023      @JsonProperty("privateKey") String privateKey,
024      @JsonProperty("passphrase") String passphrase) {
025    super();
026    this.publicKeyId = publicKeyId;
027    this.privateKey = privateKey;
028    this.passphrase = passphrase;
029  }
030
031  public String getPublicKeyId() {
032    return publicKeyId;
033  }
034
035  public String getPrivateKey() {
036    return privateKey;
037  }
038
039  public String getPassphrase() {
040    return passphrase;
041  }
042
043  @Override
044  public boolean equals(Object o) {
045    if (this == o) {
046      return true;
047    }
048    if (o == null || getClass() != o.getClass()) {
049      return false;
050    }
051    JwtConfigAppSettingsAppAuth casted = (JwtConfigAppSettingsAppAuth) o;
052    return Objects.equals(publicKeyId, casted.publicKeyId)
053        && Objects.equals(privateKey, casted.privateKey)
054        && Objects.equals(passphrase, casted.passphrase);
055  }
056
057  @Override
058  public int hashCode() {
059    return Objects.hash(publicKeyId, privateKey, passphrase);
060  }
061
062  @Override
063  public String toString() {
064    return "JwtConfigAppSettingsAppAuth{"
065        + "publicKeyId='"
066        + publicKeyId
067        + '\''
068        + ", "
069        + "privateKey='"
070        + privateKey
071        + '\''
072        + ", "
073        + "passphrase='"
074        + passphrase
075        + '\''
076        + "}";
077  }
078}