# Authenticator

<div class="jsdoc-content"><header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>
            <span class="ancestors"><a href="index.html">auth</a>~</span>Authenticator<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Handles SASL authentication with Cassandra servers.
Each time a new connection is created and the server requires authentication,
a new instance of this class will be created by the corresponding.</p></div>
        
    
</header>


    
        

    
    </div>

## Constructor

<div class="jsdoc-content">
    

    
    <h4 class="name" id="Authenticator"><span class="type-signature"></span>new Authenticator<span class="signature">()</span><span class="type-signature"></span></h4>
    

    















<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/auth/provider.ts#L38" target="_blank" rel="noopener">auth/provider.ts, line 38</a></p></div>




















    
    

    

    

    

    

    

    

    

    
        </div>

## Methods

<div class="jsdoc-content">

        
            

    

    
    <h4 class="name" id="evaluateChallenge"><span class="type-signature"></span>evaluateChallenge<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Evaluates a challenge received from the Server. Generally, this method should callback with
no error and no additional params when authentication is complete from the client perspective.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/auth/provider.ts#L50" target="_blank" rel="noopener">auth/provider.ts, line 50</a></p></div>




















        
            

    

    
    <h4 class="name" id="initialResponse"><span class="type-signature"></span>initialResponse<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Obtain an initial response token for initializing the SASL handshake.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/auth/provider.ts#L42" target="_blank" rel="noopener">auth/provider.ts, line 42</a></p></div>




















        
            

    

    
    <h4 class="name" id="onAuthenticationSuccess"><span class="type-signature"></span>onAuthenticationSuccess<span class="signature">()</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    <p>Called when authentication is successful with the last information
optionally sent by the server.</p>
</div>













<div class="admonition note"><p class="admonition-title">Source</p><p><a href="https://github.com/scylladb/nodejs-rs-driver/blob/v0.7.1/lib/auth/provider.ts#L61" target="_blank" rel="noopener">auth/provider.ts, line 61</a></p></div></div>
