Package org.ldaptive.transport
Class DefaultSaslClient
- java.lang.Object
-
- org.ldaptive.transport.DefaultSaslClient
-
- All Implemented Interfaces:
SaslClient<DefaultSaslClientRequest>
public class DefaultSaslClient extends java.lang.Object implements SaslClient<DefaultSaslClientRequest>
SASL client that negotiates the details of the bind operation.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description DefaultSaslClient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindResponsebind(TransportConnection conn, DefaultSaslClientRequest request)Performs a SASL bind.voiddispose()Disposes the underlying SASL client.javax.security.sasl.SaslClientgetClient()Returns the underlying SASL client.MechanismgetMechanism()Returns the SASL mechanism for this client.QualityOfProtectiongetQualityOfProtection()Returns the QOP for this client.
-
-
-
Method Detail
-
getClient
public javax.security.sasl.SaslClient getClient()
Returns the underlying SASL client.- Returns:
- SASL client
-
bind
public BindResponse bind(TransportConnection conn, DefaultSaslClientRequest request) throws javax.security.sasl.SaslException
Performs a SASL bind.- Specified by:
bindin interfaceSaslClient<DefaultSaslClientRequest>- Parameters:
conn- to perform the bind onrequest- SASL request to perform- Returns:
- final result of the bind process
- Throws:
javax.security.sasl.SaslException- if an error occurs
-
getMechanism
public Mechanism getMechanism()
Returns the SASL mechanism for this client. SeeSaslClient.getMechanismName().- Returns:
- SASL mechanism
-
getQualityOfProtection
public QualityOfProtection 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().
-
-