@NotThreadSafe public static class DseGssApiAuthProviderBase.GssApiOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DseGssApiAuthProviderBase.GssApiOptions.Builder |
addSaslProperty(String name,
String value)
Add a SASL property to use when creating the SASL client.
|
DseGssApiAuthProviderBase.GssApiOptions |
build() |
DseGssApiAuthProviderBase.GssApiOptions.Builder |
withAuthorizationId(String authorizationId)
Sets the authorization ID (allows proxy authentication).
|
DseGssApiAuthProviderBase.GssApiOptions.Builder |
withLoginConfiguration(Configuration loginConfiguration)
Sets a login configuration that will be used to create a
LoginContext . |
DseGssApiAuthProviderBase.GssApiOptions.Builder |
withSaslProtocol(String saslProtocol)
Sets the SASL protocol name to use; should match the username of the Kerberos service
principal used by the DSE server.
|
DseGssApiAuthProviderBase.GssApiOptions.Builder |
withSubject(Subject subject)
Sets a previously authenticated subject to reuse.
|
@NonNull public DseGssApiAuthProviderBase.GssApiOptions.Builder withLoginConfiguration(@Nullable Configuration loginConfiguration)
LoginContext
.
You MUST call either this method or withSubject(Subject)
; if both are called,
the subject takes precedence, and the login configuration will be ignored.
@NonNull public DseGssApiAuthProviderBase.GssApiOptions.Builder withSubject(@Nullable Subject subject)
You MUST call either this method or withLoginConfiguration(Configuration)
; if
both are called, the subject takes precedence, and the login configuration will be ignored.
@NonNull public DseGssApiAuthProviderBase.GssApiOptions.Builder withSaslProtocol(@Nullable String saslProtocol)
@NonNull public DseGssApiAuthProviderBase.GssApiOptions.Builder withAuthorizationId(@Nullable String authorizationId)
@NonNull public DseGssApiAuthProviderBase.GssApiOptions.Builder addSaslProperty(@NonNull String name, @NonNull String value)
Note that this builder pre-initializes these two default properties:
javax.security.sasl.server.authentication = true javax.security.sasl.qop = auth
@NonNull public DseGssApiAuthProviderBase.GssApiOptions build()
Copyright © 2017–2020. All rights reserved.