Package org.ldaptive.sasl
Class GssApiBindRequest
- java.lang.Object
-
- org.ldaptive.sasl.DefaultSaslClientRequest
-
- org.ldaptive.sasl.GssApiBindRequest
-
- All Implemented Interfaces:
javax.security.auth.callback.CallbackHandler
public class GssApiBindRequest extends DefaultSaslClientRequest
LDAP GSSAPI bind request.- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JAAS_NAME_PROPERTY
Property for the JAAS entry name from a configuration file.static java.lang.String
JAAS_REFRESH_CONFIG_PROPERTY
Property for JAAS refreshConfig.
-
Constructor Summary
Constructors Constructor Description GssApiBindRequest(java.lang.String authID, java.lang.String authzID, java.lang.String pass, java.lang.String realm, java.util.Map<java.lang.String,java.lang.Object> props)
Creates a new GSSAPI bind request.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAuthorizationID()
Returns the SASL authorization.java.lang.String
getJaasLoginModule()
Returns the class name of the JAAS login module.java.lang.String
getJaasName()
Returns the entry name in a JAAS configuration file.java.util.Map<java.lang.String,?>
getJaasOptions()
Returns the JAAS options for the login module.boolean
getJaasRefreshConfig()
Returns whether to refresh the JAAS configuration prior to use.Mechanism
getMechanism()
Returns the SASL mechanism.SaslClient
getSaslClient()
Returns the SASL client to use for this request.java.util.Map<java.lang.String,?>
getSaslProperties()
Returns the SASL properties.void
handle(javax.security.auth.callback.Callback[] callbacks)
java.lang.String
toString()
-
Methods inherited from class org.ldaptive.sasl.DefaultSaslClientRequest
createBindRequest, createProperties, getControls, setControls
-
-
-
-
Field Detail
-
JAAS_NAME_PROPERTY
public static final java.lang.String JAAS_NAME_PROPERTY
Property for the JAAS entry name from a configuration file.- See Also:
- Constant Field Values
-
JAAS_REFRESH_CONFIG_PROPERTY
public static final java.lang.String JAAS_REFRESH_CONFIG_PROPERTY
Property for JAAS refreshConfig.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GssApiBindRequest
public GssApiBindRequest(java.lang.String authID, java.lang.String authzID, java.lang.String pass, java.lang.String realm, java.util.Map<java.lang.String,java.lang.Object> props)
Creates a new GSSAPI bind request.- Parameters:
authID
- to bind asauthzID
- authorization IDpass
- password to bind withrealm
- SASL realmprops
- SASL client properties
-
-
Method Detail
-
getSaslClient
public SaslClient getSaslClient()
Description copied from class:DefaultSaslClientRequest
Returns the SASL client to use for this request.- Overrides:
getSaslClient
in classDefaultSaslClientRequest
- Returns:
- SASL client
-
handle
public void handle(javax.security.auth.callback.Callback[] callbacks) throws javax.security.auth.callback.UnsupportedCallbackException
- Throws:
javax.security.auth.callback.UnsupportedCallbackException
-
getMechanism
public Mechanism getMechanism()
Description copied from class:DefaultSaslClientRequest
Returns the SASL mechanism.- Specified by:
getMechanism
in classDefaultSaslClientRequest
- Returns:
- SASL mechanism
-
getAuthorizationID
public java.lang.String getAuthorizationID()
Description copied from class:DefaultSaslClientRequest
Returns the SASL authorization.- Overrides:
getAuthorizationID
in classDefaultSaslClientRequest
- Returns:
- SASL authorization
-
getSaslProperties
public java.util.Map<java.lang.String,?> getSaslProperties()
Description copied from class:DefaultSaslClientRequest
Returns the SASL properties.- Overrides:
getSaslProperties
in classDefaultSaslClientRequest
- Returns:
- SASL properties
-
getJaasName
public java.lang.String 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
public java.lang.String getJaasLoginModule()
Returns the class name of the JAAS login module.- Returns:
- JAAS login module class name
-
getJaasOptions
public java.util.Map<java.lang.String,?> getJaasOptions()
Returns the JAAS options for the login module.- Returns:
- JAAS options
-
toString
public java.lang.String toString()
- Overrides:
toString
in classDefaultSaslClientRequest
-
-