Package com.southernstorm.noise.protocol
Class Pattern
java.lang.Object
com.southernstorm.noise.protocol.Pattern
Information about all supported handshake patterns.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
static final short
-
Method Summary
Modifier and TypeMethodDescriptionstatic short[]
Look up the description information for a pattern.static short
reverseFlags
(short flags) Reverses the local and remote flags for a pattern.
-
Field Details
-
S
public static final short S- See Also:
-
E
public static final short E- See Also:
-
EE
public static final short EE- See Also:
-
ES
public static final short ES- See Also:
-
SE
public static final short SE- See Also:
-
SS
public static final short SS- See Also:
-
F
public static final short F- See Also:
-
FF
public static final short FF- See Also:
-
FLIP_DIR
public static final short FLIP_DIR- See Also:
-
FLAG_LOCAL_STATIC
public static final short FLAG_LOCAL_STATIC- See Also:
-
FLAG_LOCAL_EPHEMERAL
public static final short FLAG_LOCAL_EPHEMERAL- See Also:
-
FLAG_LOCAL_REQUIRED
public static final short FLAG_LOCAL_REQUIRED- See Also:
-
FLAG_LOCAL_EPHEM_REQ
public static final short FLAG_LOCAL_EPHEM_REQ- See Also:
-
FLAG_LOCAL_HYBRID
public static final short FLAG_LOCAL_HYBRID- See Also:
-
FLAG_LOCAL_HYBRID_REQ
public static final short FLAG_LOCAL_HYBRID_REQ- See Also:
-
FLAG_REMOTE_STATIC
public static final short FLAG_REMOTE_STATIC- See Also:
-
FLAG_REMOTE_EPHEMERAL
public static final short FLAG_REMOTE_EPHEMERAL- See Also:
-
FLAG_REMOTE_REQUIRED
public static final short FLAG_REMOTE_REQUIRED- See Also:
-
FLAG_REMOTE_EPHEM_REQ
public static final short FLAG_REMOTE_EPHEM_REQ- See Also:
-
FLAG_REMOTE_HYBRID
public static final short FLAG_REMOTE_HYBRID- See Also:
-
FLAG_REMOTE_HYBRID_REQ
public static final short FLAG_REMOTE_HYBRID_REQ- See Also:
-
-
Method Details
-
lookup
Look up the description information for a pattern.- Parameters:
name
- The name of the pattern.- Returns:
- The pattern description or null.
-
reverseFlags
public static short reverseFlags(short flags) Reverses the local and remote flags for a pattern.- Parameters:
flags
- The flags, assuming that the initiator is "local".- Returns:
- The reversed flags, with the responder now being "local".
-