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

io.swagger.models.auth.BasicAuthDefinition Maven / Gradle / Ivy

There is a newer version: 1.5.7
Show newest version
package io.swagger.models.auth;

public class BasicAuthDefinition extends AbstractSecuritySchemeDefinition {
    private String type = "basic";

    public BasicAuthDefinition() {
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = super.hashCode();
        result = prime * result + ((type == null) ? 0 : type.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (!super.equals(obj)) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        BasicAuthDefinition other = (BasicAuthDefinition) obj;
        if (type == null) {
            if (other.type != null) {
                return false;
            }
        } else if (!type.equals(other.type)) {
            return false;
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy