setAuthenticator
Sets the authenticator to authenticate with a remote target server. Currently, there are two types of the authenticators, BasicAuthenticator and SessionAuthenticator, supported.
Return
this.
Parameters
authenticator
The authenticator.