authenticator
Sets the authenticator used by the client.
Use this method to update a client certificate or JSON Web Token (JWT) before it expires.
The new authenticator must be of the same class as the existing authenticator.
If the new authenticator is a JwtAuthenticator, the new credential is immediately applied to all existing server connections.
CAVEAT: For all other types of authenticators, the new credential takes effect at an unspecified time in the future. Existing connections might continue to use the old credential indefinitely, while newly created connections are authenticated with the new credential. Consequently, changing to a credential with different privileges is strongly discouraged.
Throws
If the given authenticator is a different type than the existing authenticator.