|
| 1 | +package com.auth0.json.mgmt.resourceserver; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 4 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 5 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 6 | + |
| 7 | +/** |
| 8 | + * Class that represents the encryption key associated with a {@link TokenEncryption} |
| 9 | + */ |
| 10 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 11 | +@JsonInclude(JsonInclude.Include.NON_NULL) |
| 12 | +public class EncryptionKey { |
| 13 | + |
| 14 | + @JsonProperty("name") |
| 15 | + private String name; |
| 16 | + @JsonProperty("alg") |
| 17 | + private String alg; |
| 18 | + @JsonProperty("pem") |
| 19 | + private String pem; |
| 20 | + @JsonProperty("kid") |
| 21 | + private String kid; |
| 22 | + @JsonProperty("thumbprint_sha256") |
| 23 | + private String thumbprintSha256; |
| 24 | + |
| 25 | + /** |
| 26 | + * @return the value of the {@code name} field. |
| 27 | + */ |
| 28 | + public String getName() { |
| 29 | + return name; |
| 30 | + } |
| 31 | + |
| 32 | + /** |
| 33 | + * Sets the value of the {@code name} field. |
| 34 | + * @param name the value of the {@code name} field. |
| 35 | + */ |
| 36 | + public void setName(String name) { |
| 37 | + this.name = name; |
| 38 | + } |
| 39 | + |
| 40 | + /** |
| 41 | + * @return the value of the {@code alg} field. |
| 42 | + */ |
| 43 | + public String getAlg() { |
| 44 | + return alg; |
| 45 | + } |
| 46 | + |
| 47 | + /** |
| 48 | + * Sets the value of the {@code alg} field. |
| 49 | + * @param alg the value of the {@code alg} field. |
| 50 | + */ |
| 51 | + public void setAlg(String alg) { |
| 52 | + this.alg = alg; |
| 53 | + } |
| 54 | + |
| 55 | + /** |
| 56 | + * @return the value of the {@code pem} field. |
| 57 | + */ |
| 58 | + public String getPem() { |
| 59 | + return pem; |
| 60 | + } |
| 61 | + |
| 62 | + /** |
| 63 | + * Sets the value of the {@code pem} field. |
| 64 | + * @param pem the value of the {@code pem} field. |
| 65 | + */ |
| 66 | + public void setPem(String pem) { |
| 67 | + this.pem = pem; |
| 68 | + } |
| 69 | + |
| 70 | + /** |
| 71 | + * @return the value of the {@code kid} field. |
| 72 | + */ |
| 73 | + public String getKid() { |
| 74 | + return kid; |
| 75 | + } |
| 76 | + |
| 77 | + /** |
| 78 | + * Sets the value of the {@code kid} field. |
| 79 | + * @param kid the value of the {@code kid} field. |
| 80 | + */ |
| 81 | + public void setKid(String kid) { |
| 82 | + this.kid = kid; |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * @return the value of the {@code thumbprint_sha256} field. |
| 87 | + */ |
| 88 | + public String getThumbprintSha256() { |
| 89 | + return thumbprintSha256; |
| 90 | + } |
| 91 | + |
| 92 | + /** |
| 93 | + * Sets the value of the {@code thumbprint_sha256} field. |
| 94 | + * @param thumbprintSha256 the value of the {@code thumbprint_sha256} field. |
| 95 | + */ |
| 96 | + public void setThumbprintSha256(String thumbprintSha256) { |
| 97 | + this.thumbprintSha256 = thumbprintSha256; |
| 98 | + } |
| 99 | +} |
0 commit comments