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.StringJAAS_NAME_PROPERTYProperty for the JAAS entry name from a configuration file.static java.lang.StringJAAS_REFRESH_CONFIG_PROPERTYProperty 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.StringgetAuthorizationID()Returns the SASL authorization.java.lang.StringgetJaasLoginModule()Returns the class name of the JAAS login module.java.lang.StringgetJaasName()Returns the entry name in a JAAS configuration file.java.util.Map<java.lang.String,?>getJaasOptions()Returns the JAAS options for the login module.booleangetJaasRefreshConfig()Returns whether to refresh the JAAS configuration prior to use.MechanismgetMechanism()Returns the SASL mechanism.SaslClientgetSaslClient()Returns the SASL client to use for this request.java.util.Map<java.lang.String,?>getSaslProperties()Returns the SASL properties.voidhandle(javax.security.auth.callback.Callback[] callbacks)java.lang.StringtoString()-
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:DefaultSaslClientRequestReturns the SASL client to use for this request.- Overrides:
getSaslClientin 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:DefaultSaslClientRequestReturns the SASL mechanism.- Specified by:
getMechanismin classDefaultSaslClientRequest- Returns:
- SASL mechanism
-
getAuthorizationID
public java.lang.String getAuthorizationID()
Description copied from class:DefaultSaslClientRequestReturns the SASL authorization.- Overrides:
getAuthorizationIDin classDefaultSaslClientRequest- Returns:
- SASL authorization
-
getSaslProperties
public java.util.Map<java.lang.String,?> getSaslProperties()
Description copied from class:DefaultSaslClientRequestReturns the SASL properties.- Overrides:
getSaslPropertiesin 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:
toStringin classDefaultSaslClientRequest
-
-