All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.athenz.zms.JWSDomain Maven / Gradle / Ivy

There is a newer version: 1.12.5
Show newest version
//
// This file generated by rdl 1.5.2. Do not modify!
//

package com.yahoo.athenz.zms;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Map;
import com.yahoo.rdl.*;

//
// JWSDomain - SignedDomain using flattened JWS JSON Serialization syntax.
// https://tools.ietf.org/html/rfc7515#section-7.2.2
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class JWSDomain {
    public String payload;
    @com.fasterxml.jackson.annotation.JsonProperty("protected")
    public String protectedHeader;
    public Map header;
    public String signature;

    public JWSDomain setPayload(String payload) {
        this.payload = payload;
        return this;
    }
    public String getPayload() {
        return payload;
    }
    public JWSDomain setProtectedHeader(String protectedHeader) {
        this.protectedHeader = protectedHeader;
        return this;
    }
    public String getProtectedHeader() {
        return protectedHeader;
    }
    public JWSDomain setHeader(Map header) {
        this.header = header;
        return this;
    }
    public Map getHeader() {
        return header;
    }
    public JWSDomain setSignature(String signature) {
        this.signature = signature;
        return this;
    }
    public String getSignature() {
        return signature;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != JWSDomain.class) {
                return false;
            }
            JWSDomain a = (JWSDomain) another;
            if (payload == null ? a.payload != null : !payload.equals(a.payload)) {
                return false;
            }
            if (protectedHeader == null ? a.protectedHeader != null : !protectedHeader.equals(a.protectedHeader)) {
                return false;
            }
            if (header == null ? a.header != null : !header.equals(a.header)) {
                return false;
            }
            if (signature == null ? a.signature != null : !signature.equals(a.signature)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy