Package org.apache.cassandra.auth
Enum Class IInternodeAuthenticator.InternodeConnectionDirection
java.lang.Object
java.lang.Enum<IInternodeAuthenticator.InternodeConnectionDirection>
org.apache.cassandra.auth.IInternodeAuthenticator.InternodeConnectionDirection
- All Implemented Interfaces:
Serializable,Comparable<IInternodeAuthenticator.InternodeConnectionDirection>,Constable
- Enclosing interface:
- IInternodeAuthenticator
public static enum IInternodeAuthenticator.InternodeConnectionDirection
extends Enum<IInternodeAuthenticator.InternodeConnectionDirection>
Enum that represents connection type of internode connection.
INBOUND - called after connection established, with certificate available if present.
OUTBOUND - called after connection established, with certificate available if present.
OUTBOUND_PRECONNECT - called before initiating a connection, without certificate available.
The outbound connection will be authenticated with the certificate once a redirected connection is established.
This is an extra check that can be used to detect misconfiguration before reconnection, or ignored by returning true.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INBOUND
-
OUTBOUND
-
OUTBOUND_PRECONNECT
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-