public static class KerberosAuthProviderBase.KerberosAuthOptions.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
KerberosAuthProviderBase.KerberosAuthOptions |
build() |
KerberosAuthProviderBase.KerberosAuthOptions.Builder |
withAuthorizationId(String authorizationId)
Provide an authorization ID, representing a Cassandra user.
|
KerberosAuthProviderBase.KerberosAuthOptions.Builder |
withSaslProperties(Map<String,?> saslProperties)
Specify the SASL properties for authentication.
|
KerberosAuthProviderBase.KerberosAuthOptions.Builder |
withSaslProtocol(String saslProtocol)
Provide a SASL protocol name.
|
KerberosAuthProviderBase.KerberosAuthOptions.Builder |
withServerNameResolver(ServerNameResolver serverNameResolver)
Optional resolver for the serverName as part of the SASL Client API.
|
public KerberosAuthProviderBase.KerberosAuthOptions.Builder withAuthorizationId(String authorizationId)
admin@EXAMPLE.COM, and an authorization ID of "demoapp", then the authenticator will assume
the Cassandra role of "demoapp", assuming that the Cassandra user "admin" exists and has permission on
role "demoapp".
If not provided, the application will assume the cassandra role represented by the client's principal.
See GRANT ROLE for more
information.authorizationId - Username of a Cassandra user to assumepublic KerberosAuthProviderBase.KerberosAuthOptions.Builder withSaslProtocol(String saslProtocol)
cassandra/host1.cluster.example.com@EXAMPLE.COM, then the SASL protocol name is "cassandra".
If not provided, the default value of cassandra is used.saslProtocol - The name of the SASL protocolpublic KerberosAuthProviderBase.KerberosAuthOptions.Builder withSaslProperties(Map<String,?> saslProperties)
saslProperties - SASL properties to apply to the connection.public KerberosAuthProviderBase.KerberosAuthOptions.Builder withServerNameResolver(ServerNameResolver serverNameResolver)
serverNameResolver - The optional implementation of a resolver for the serverNamepublic KerberosAuthProviderBase.KerberosAuthOptions build()
Copyright © 2020 Instaclustr. All rights reserved.