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 StringAuthentication ID.private final StringAuthorization ID.private static final StringDefault name of the JAAS configuration.private static final StringDefault login module for GSSAPI.private final AtomicBooleanBoolean that ensures theGssApiSaslClientis only returned on the first request.private static final StringProperty for the login module class name for GSSAPI.static final StringProperty for the JAAS entry name from a configuration file.private static final StringSASL property to control the JAAS configuration name.static final StringProperty for JAAS refreshConfig.private final StringClass name of the JAAS login module to use for GSSAPI.private final StringName of the JAAS configuration.Options set on the JAAS login module.private final booleanWhether to refresh the JAAS configuration prior to use.private static final MechanismGSSAPI SASL mechanism.private final StringPassword.SASL client properties.private final StringRealm. -
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.booleanReturns 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.voidtoString()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 theGssApiSaslClientis only returned on the first request.
-
-
Constructor Details
-
Method Details
-
getSaslClient
Description copied from class:DefaultSaslClientRequestReturns the SASL client to use for this request.- Overrides:
getSaslClientin classDefaultSaslClientRequest- Returns:
- SASL client
-
handle
- Throws:
UnsupportedCallbackException
-
getMechanism
Description copied from class:DefaultSaslClientRequestReturns the SASL mechanism.- Specified by:
getMechanismin classDefaultSaslClientRequest- Returns:
- SASL mechanism
-
getAuthorizationID
Description copied from class:DefaultSaslClientRequestReturns the SASL authorization.- Overrides:
getAuthorizationIDin classDefaultSaslClientRequest- Returns:
- SASL authorization
-
getSaslProperties
Description copied from class:DefaultSaslClientRequestReturns the SASL properties.- Overrides:
getSaslPropertiesin 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:
toStringin classDefaultSaslClientRequest
-