com.hazelcast.client.impl
Class ClusterAuthenticator

java.lang.Object
  extended by com.hazelcast.client.impl.ClusterAuthenticator
All Implemented Interfaces:
Authenticator

public class ClusterAuthenticator
extends Object
implements Authenticator

Used to authenticate client connections to cluster as parameter to ClientConnectionManager.

See Also:
ClientConnectionManager.getOrConnect(Address, Authenticator)

Constructor Summary
ClusterAuthenticator(HazelcastClientInstanceImpl client, Credentials credentials)
           
 
Method Summary
 void authenticate(ClientConnection connection)
          Authenticates a ClientConnection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterAuthenticator

public ClusterAuthenticator(HazelcastClientInstanceImpl client,
                            Credentials credentials)
Method Detail

authenticate

public void authenticate(ClientConnection connection)
                  throws AuthenticationException,
                         IOException
Description copied from interface: Authenticator
Authenticates a ClientConnection. If the call returns normally, the ClientConnection is authenticated successfully.

Specified by:
authenticate in interface Authenticator
Parameters:
connection - the ClientConnection
Throws:
AuthenticationException - if the authentication failed
IOException - if some kind of IO problem happens.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.