public enum Mechanisms extends java.lang.Enum<Mechanisms>
Modifier and Type | Method and Description |
---|---|
abstract void |
check(Options options) |
abstract Mechanism |
create(SessionBase session,
Address peerAddress,
Options options) |
boolean |
isMechanism(java.nio.ByteBuffer greetingRecv) |
static Mechanisms |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mechanisms[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mechanisms NULL
public static final Mechanisms PLAIN
public static final Mechanisms CURVE
public static final Mechanisms GSSAPI
public static Mechanisms[] values()
for (Mechanisms c : Mechanisms.values()) System.out.println(c);
public static Mechanisms valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract Mechanism create(SessionBase session, Address peerAddress, Options options)
public abstract void check(Options options)
public boolean isMechanism(java.nio.ByteBuffer greetingRecv)