@NotThreadSafe public static class DseGssApiAuthProviderBase.GssApiOptions.Builder extends Object
Constructor and Description |
---|
Builder() |
@NonNull public DseGssApiAuthProviderBase.GssApiOptions.Builder withLoginConfiguration(@Nullable Configuration loginConfiguration)
LoginContext
.
You MUST call either a withLoginConfiguration method or withSubject(Subject)
;
if both are called, the subject takes precedence, and the login configuration will be
ignored.
withLoginConfiguration(Map)
@NonNull public DseGssApiAuthProviderBase.GssApiOptions.Builder withLoginConfiguration(@Nullable Map<String,String> loginConfiguration)
LoginContext
.
This is an alternative to withLoginConfiguration(Configuration)
, that builds
the configuration from Krb5LoginModule
with the given options.
You MUST call either a withLoginConfiguration 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()
public static Configuration fetchLoginConfiguration(Map<String,String> options)
Copyright © 2017–2024. All rights reserved.