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

io.strimzi.api.kafka.model.KafkaJmxAuthentication Maven / Gradle / Ivy

There is a newer version: 0.45.0
Show newest version
/*
 * Copyright Strimzi authors.
 * License: Apache License 2.0 (see the file LICENSE or http://apache.org/licenses/LICENSE-2.0.html).
 */
package io.strimzi.api.kafka.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.strimzi.crdgenerator.annotations.Description;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/*
 * Configure the authentication protocol on the Kafka Broker's JMX port.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
        include = JsonTypeInfo.As.EXISTING_PROPERTY,
        property = "type")
@JsonInclude(JsonInclude.Include.NON_NULL)
@EqualsAndHashCode
@JsonSubTypes({
        @JsonSubTypes.Type(name = KafkaJmxAuthenticationPassword.TYPE_PASSWORD, value = KafkaJmxAuthenticationPassword.class)
})
public abstract class KafkaJmxAuthentication implements UnknownPropertyPreserving, Serializable {
    private static final long serialVersionUID = 1L;
    private Map additionalProperties = new HashMap<>(0);

    @Description("Authentication type. " +
            "Currently the only supported types are `password`." +
            "`password` type creates a username and protected port with no TLS.")
    public abstract String getType();

    @Override
    public Map getAdditionalProperties() {
        return this.additionalProperties;
    }

    @Override
    public void setAdditionalProperty(String name, Object value) {
        this.additionalProperties.put(name, value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy