Package org.apache.cassandra.auth
Class AllowAllInternodeAuthenticator
- java.lang.Object
-
- org.apache.cassandra.auth.AllowAllInternodeAuthenticator
-
- All Implemented Interfaces:
IInternodeAuthenticator
public class AllowAllInternodeAuthenticator extends java.lang.Object implements IInternodeAuthenticator
-
-
Constructor Summary
Constructors Constructor Description AllowAllInternodeAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(java.net.InetAddress remoteAddress, int remotePort)Decides whether or not a peer is allowed to connect to this node.voidvalidateConfiguration()Validates configuration of IInternodeAuthenticator implementation (if configurable).
-
-
-
Method Detail
-
authenticate
public boolean authenticate(java.net.InetAddress remoteAddress, int remotePort)Description copied from interface:IInternodeAuthenticatorDecides whether or not a peer is allowed to connect to this node. If this method returns false, the socket will be immediately closed.- Specified by:
authenticatein interfaceIInternodeAuthenticator- Parameters:
remoteAddress- ip address of the connecting node.remotePort- port of the connecting node.- Returns:
- true if the connection should be accepted, false otherwise.
-
validateConfiguration
public void validateConfiguration() throws ConfigurationExceptionDescription copied from interface:IInternodeAuthenticatorValidates configuration of IInternodeAuthenticator implementation (if configurable).- Specified by:
validateConfigurationin interfaceIInternodeAuthenticator- Throws:
ConfigurationException- when there is a configuration error.
-
-