public Type type() {
        return type;
    }
The type of the SASL login context, it should be SERVER for the broker and CLIENT for the clients (consumer, producer,
etc.). This is used to validate behaviour (e.g. some functionality is only available in the broker or clients).
clients/src/main/java/org/apache/kafka/common/security/JaasContext.java