Package org.ldaptive.transport
Class DefaultSaslClient
java.lang.Object
org.ldaptive.transport.DefaultSaslClient
- All Implemented Interfaces:
SaslClient<DefaultSaslClientRequest>
SASL client that negotiates the details of the bind operation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SaslClient
Underlying SASL client.private static final org.slf4j.Logger
Logger for this class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind
(TransportConnection conn, DefaultSaslClientRequest request) Performs a SASL bind.void
dispose()
Disposes the underlying SASL client.Returns the underlying SASL client.Returns the SASL mechanism for this client.Returns the QOP for this client.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGERLogger for this class. -
client
Underlying SASL client.
-
-
Constructor Details
-
DefaultSaslClient
public DefaultSaslClient()
-
-
Method Details
-
getClient
Returns the underlying SASL client.- Returns:
- SASL client
-
bind
public BindResponse bind(TransportConnection conn, DefaultSaslClientRequest request) throws SaslException Performs a SASL bind.- Specified by:
bind
in interfaceSaslClient<DefaultSaslClientRequest>
- Parameters:
conn
- to perform the bind onrequest
- SASL request to perform- Returns:
- final result of the bind process
- Throws:
SaslException
- if an error occurs
-
getMechanism
Returns the SASL mechanism for this client. SeeSaslClient.getMechanismName()
.- Returns:
- SASL mechanism
-
getQualityOfProtection
Returns the QOP for this client. SeeSaslClient.getNegotiatedProperty(String)
.- Returns:
- QOP or null if the underlying sasl client has not completed
-
dispose
public void dispose()Disposes the underlying SASL client. SeeSaslClient.dispose()
.
-