THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
public enum ScramMechanismTypeScramMechanism { UNKNOWN(0), HMAC_SHA_256(1), HMAC_SHA_512(2); byte type; private ScramMechanismTypeScramMechanism(byte type) { this.type = type; } } public class ScramMechanismScramMechanismInfo { private final ScramMechanismTypeScramMechanism typemechanism; private final int iterations; public ScramMechanismInfo(ScramMechanism(ScramMechanismType typemechanism, int iterations) { this.typemechanism = typemechanism; this.iterations = iterations; } public ScramMechanismTypeScramMechanism typemechanism() { return typemechanism; } public int iterations() { return iterations; } } public class ScramUserListing { private final String name; private final List<ScramMechanism>List<ScramMechanismInfo> mechanisminfos; public ScramUserListing(String name, List<ScramMechanism>List<ScramMechanismInfo> mechanisminfos) { this.name = name; this.mechanisminfos = mechanisminfos; } public String name() { return name; } public List<ScramMechanism>List<ScramMechanismInfo> mechanisminfos() { return mechanism; } } public class ListScramUsersOptions extends AbstractOptions<ListScramUsersOptions> { } default ListScramUsersResult listScramUsers() { return listScramUsers(new ListScramUsersOptions()); } ListScramUsersResult listScramUsers(ListScramUsersOptions options); public class ListScramUsersResult { public KafkaFuture<Map<String, ScramUser>> all(); } |
...
Code Block |
---|
{ "apiKey": 50, "type": "request", "name": "ListScramUsersRequest", "validVersions": "0", "flexibleVersions": "0+", "fields": [ ] } { "apiKey": 50, "type": "response", "name": "ListScramUsersResponse", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "Error", "type": "int16", "versions": "0+", "about": "The message-level error code." }, { "name": "ErrorMessage", "type": "string", "versions": "0+", "nullableVersions": "0+", "about": "The message-level error message." }, { "name": "Users", "type": "[]ScramUser", "versions": "0+", "about": "The SCRAM users.", "fields": [ { "name": "Name", "type": "string", "versions": "0+", "about": "The user name." }, { "name": "MechanismsMechanismInfos", "type": "ScramUserMechanismScramUserMechanismInfo", "versions": "0+", "about": "The user name." }, { "name": "TypeMechanism", "type": "int8", "versions": "0+", "about": "The SCRAM mechanism type." }, { "name": "Iterations", "type": "int32", "versions": "0+", "about": "The number of iterations used in the SCRAM mechanism." } } ]} ] } |
...
Code Block |
---|
public class ScramUserDeletion { private final String user; ScramUserDeletion(String user) { this.user = user; } public String user() { return user; } } public class ScramCredential { private final ScramMechanismScramMechanismInfo mechanisminfo; private final byte[] salt; private final byte[] saltedPassword; } public class ScramUserAlteration { private final String user; private final List<ScramCredential> credentials; public ScramCredentialAlteration(String user, List<ScramCredential> credentials) { this.user = user; this.credentials = credentials; } public String user() { return user; } public List<ScramCredential> credentials() { return credentials; } } public class AlterScramUsersOptions extends AbstractOptions<AlterScramUsersOptions> {} default AlterScramUsersResult alterScramUsers(List<ScramUserDeletion> deletions, List<ScramUserAlteration> alterations) { return alterScramUsers(deletions, alterations, new AlterScramUsersOptions()); } AlterScramUsersResult alterScramUsers(List<ScramUserDeletion> deletions, List<ScramUserAlteration> alterations, AlterScramUsersOptions options); public class AlterScramCredentialsResult { public KafkaFuture<Void> all(); public Map<String, KafkaFuture<Void>> results(); } |
...
Code Block | ||
---|---|---|
| ||
{ "apiKey": 51, "type": "response", "name": "AlterScramUsersRequest", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "Deletions", "type": "[]ScramUserDeletion", "versions": "0+", "about": "The SCRAM users to remove.", "fields": [ { "name": "Name", "type": "string", "versions": "0+", "about": "The user name." } ]}, { "name": "Alterations", "type": "[]ScramUserAlteration", "versions": "0+", "about": "The SCRAM users to alter.", "fields": [ { "name": "Name", "type": "string", "versions": "0+", "about": "The user name." } { "name": "Credentials", "type": "ScramCredential", "versions": "0+", "about": "The SCRAM credentials to configure." } { "name": "MechanismTypeMechanism", "type": "int8", "versions": "0+", "about": "The SCRAM mechanism type." }, { "name": "MechanismIterationsIterations", "type": "int32", "versions": "0+", "about": "The number of iterations, or -1 to use the server default." }, { "name": "Salt", "type": "bytes", "versions": "0+", ", "about": "A random salt generated by the client." }, { "name": "SaltedPassword", "type": "bytes", "versions": "0+", ", "about": "The salted password." } ]} ]} ] } { "apiKey": 51, "type": "response", "name": "AlterScramUsersResponse", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "Results", "type": "[]AlterScramUsersResult", "versions": "0+", "about": "The results for removals, followed by the results for alterations.", "fields": [ { "name": "ErrorCode", "type": "int8", "versions": "0+", "about": "The error code." }, { "name": "ErrorString", "type": "string", "versions": "0+", "nullableVersions": "0+", "about": "The error message, if any." } ]} ] } |
...