Package org.ldaptive.sasl
Class GssApiBindRequest
java.lang.Object
org.ldaptive.sasl.DefaultSaslClientRequest
org.ldaptive.sasl.GssApiBindRequest
- All Implemented Interfaces:
CallbackHandler
LDAP GSSAPI bind request.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
Authentication ID.private final String
Authorization ID.private static final String
Default name of the JAAS configuration.private static final String
Default login module for GSSAPI.private final AtomicBoolean
Boolean that ensures theGssApiSaslClient
is only returned on the first request.private static final String
Property for the login module class name for GSSAPI.static final String
Property for the JAAS entry name from a configuration file.private static final String
SASL property to control the JAAS configuration name.static final String
Property for JAAS refreshConfig.private final String
Class name of the JAAS login module to use for GSSAPI.private final String
Name of the JAAS configuration.Options set on the JAAS login module.private final boolean
Whether to refresh the JAAS configuration prior to use.private static final Mechanism
GSSAPI SASL mechanism.private final String
Password.SASL client properties.private final String
Realm. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the SASL authorization.Returns the class name of the JAAS login module.Returns the entry name in a JAAS configuration file.Returns the JAAS options for the login module.boolean
Returns whether to refresh the JAAS configuration prior to use.Returns the SASL mechanism.Returns the SASL client to use for this request.Returns the SASL properties.void
toString()
Methods inherited from class org.ldaptive.sasl.DefaultSaslClientRequest
createBindRequest, createProperties, getControls, setControls
-
Field Details
-
MECHANISM
GSSAPI SASL mechanism. -
JAAS_OPTIONS_PROPERTY_PREFIX
SASL property to control the JAAS configuration name.- See Also:
-
JAAS_NAME_PROPERTY
Property for the JAAS entry name from a configuration file.- See Also:
-
DEFAULT_GSSAPI_JAAS_NAME
Default name of the JAAS configuration.- See Also:
-
JAAS_REFRESH_CONFIG_PROPERTY
Property for JAAS refreshConfig.- See Also:
-
JAAS_LOGIN_MODULE_PROPERTY
Property for the login module class name for GSSAPI.- See Also:
-
DEFAULT_GSSAPI_LOGIN_MODULE
Default login module for GSSAPI.- See Also:
-
authenticationID
Authentication ID. -
authorizationID
Authorization ID. -
saslRealm
Realm. -
saslProperties
SASL client properties. -
jaasName
Name of the JAAS configuration. -
jaasRefreshConfig
private final boolean jaasRefreshConfigWhether to refresh the JAAS configuration prior to use. SeeConfiguration.refresh()
. -
jaasLoginModule
Class name of the JAAS login module to use for GSSAPI. -
jaasOptions
Options set on the JAAS login module. -
password
Password. -
invokeOnce
Boolean that ensures theGssApiSaslClient
is only returned on the first request.
-
-
Constructor Details
-
Method Details
-
getSaslClient
Description copied from class:DefaultSaslClientRequest
Returns the SASL client to use for this request.- Overrides:
getSaslClient
in classDefaultSaslClientRequest
- Returns:
- SASL client
-
handle
- Throws:
UnsupportedCallbackException
-
getMechanism
Description copied from class:DefaultSaslClientRequest
Returns the SASL mechanism.- Specified by:
getMechanism
in classDefaultSaslClientRequest
- Returns:
- SASL mechanism
-
getAuthorizationID
Description copied from class:DefaultSaslClientRequest
Returns the SASL authorization.- Overrides:
getAuthorizationID
in classDefaultSaslClientRequest
- Returns:
- SASL authorization
-
getSaslProperties
Description copied from class:DefaultSaslClientRequest
Returns the SASL properties.- Overrides:
getSaslProperties
in classDefaultSaslClientRequest
- Returns:
- SASL properties
-
getJaasName
Returns the entry name in a JAAS configuration file.- Returns:
- JAAS configuration name
-
getJaasRefreshConfig
public boolean getJaasRefreshConfig()Returns whether to refresh the JAAS configuration prior to use. SeeConfiguration.refresh()
.- Returns:
- whether to refresh the JAAS config
-
getJaasLoginModule
Returns the class name of the JAAS login module.- Returns:
- JAAS login module class name
-
getJaasOptions
Returns the JAAS options for the login module.- Returns:
- JAAS options
-
toString
- Overrides:
toString
in classDefaultSaslClientRequest
-