private void checkIsAuthed(final FullBinaryMemcacheResponse msg) {
        switch (msg.getStatus()) {
            case SASL_AUTH_SUCCESS:
                originalPromise.setSuccess();
                ctx.pipeline().remove(this);
                ctx.fireChannelActive();
                break;
            case SASL_AUTH_FAILURE:
                originalPromise.setFailure(new AuthenticationException("Authentication Failure"));
                break;
            default:
                originalPromise.setFailure(new AuthenticationException("Unhandled SASL auth status: "
                    + msg.getStatus()));
        }
    }
private void checkIsAuthed ( final FullBinaryMemcacheResponse msg ) { switch ( msg . getStatus ( ) ) { case SASL_AUTH_SUCCESS : originalPromise . setSuccess ( ) ; ctx . pipeline ( ) . remove ( this ) ; ctx . fireChannelActive ( ) ; break ; case SASL_AUTH_FAILURE : originalPromise . setFailure ( new AuthenticationException ( "Authentication Failure" ) ) ; break ; default : originalPromise . setFailure ( new AuthenticationException ( "Unhandled SASL auth status: " + msg . getStatus ( ) ) ) ; } }
Once authentication is completed, check the response and react appropriately to the upper layers.

@param msg the incoming message to investigate.