( ( SimpleAuthentication ) authentication ).setSimple( bindRequest.getCredentials() );
}
else
{
// SASL bind
authentication = new SaslCredentials();
( ( SaslCredentials ) authentication ).setCredentials( bindRequest.getCredentials() );
( ( SaslCredentials ) authentication ).setMechanism( bindRequest.getSaslMechanism() );
}
// The authentication