java.lang.Object
com.southernstorm.noise.protocol.Pattern
Information about all supported handshake patterns.
Field Summary
Modifier and TypeFieldDescriptionstatic final shortToken code: Estatic final shortToken code: EEstatic final shortToken code: ESstatic final shortToken code: Fstatic final shortToken code: FFstatic final shortFlag bit: local ephemeral requiredstatic final shortFlag bit: local ephemeralstatic final shortFlag bit: local hybridstatic final shortFlag bit: local hybrid requiredstatic final shortFlag bit: local requiredstatic final shortFlag bit: local staticstatic final shortFlag bit: remote ephemeral requiredstatic final shortFlag bit: remote ephemeralstatic final shortFlag bit: remote hybridstatic final shortFlag bit: remote hybrid requiredstatic final shortFlag bit: remote requiredstatic final shortFlag bit: remote staticstatic final shortToken code: FLIP_DIRprivate static final short[]Token sequence of the Noise IK handshake pattern.private static final short[]The flags of the IKhfs handshake pattern.private static final short[]Token sequence of the Noise N handshake pattern.private static final short[]Token sequence of the Noise XK handshake pattern.private static final short[]The flags of the XKhfs handshake pattern.static final shortToken code: Sstatic final shortToken code: SEstatic final shortToken code: SSConstructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic short[]Look up the description information for a pattern.static shortreverseFlags(short flags) Reverses the local and remote flags for a pattern.
Field Details
S
E
EE
ES
SE
SS
F
FF
FLIP_DIR
FLAG_LOCAL_STATIC
FLAG_LOCAL_EPHEMERAL
public static final short FLAG_LOCAL_EPHEMERALFlag bit: local ephemeral- See Also:
FLAG_LOCAL_REQUIRED
FLAG_LOCAL_EPHEM_REQ
public static final short FLAG_LOCAL_EPHEM_REQFlag bit: local ephemeral required- See Also:
FLAG_LOCAL_HYBRID
FLAG_LOCAL_HYBRID_REQ
public static final short FLAG_LOCAL_HYBRID_REQFlag bit: local hybrid required- See Also:
FLAG_REMOTE_STATIC
FLAG_REMOTE_EPHEMERAL
public static final short FLAG_REMOTE_EPHEMERALFlag bit: remote ephemeral- See Also:
FLAG_REMOTE_REQUIRED
public static final short FLAG_REMOTE_REQUIREDFlag bit: remote required- See Also:
FLAG_REMOTE_EPHEM_REQ
public static final short FLAG_REMOTE_EPHEM_REQFlag bit: remote ephemeral required- See Also:
FLAG_REMOTE_HYBRID
FLAG_REMOTE_HYBRID_REQ
public static final short FLAG_REMOTE_HYBRID_REQFlag bit: remote hybrid required- See Also:
noise_pattern_N
private static final short[] noise_pattern_NToken sequence of the Noise N handshake pattern.noise_pattern_XK
private static final short[] noise_pattern_XKToken sequence of the Noise XK handshake pattern.noise_pattern_IK
private static final short[] noise_pattern_IKToken sequence of the Noise IK handshake pattern.noise_pattern_IKhfs
private static final short[] noise_pattern_IKhfsThe flags of the IKhfs handshake pattern.noise_pattern_XKhfs
private static final short[] noise_pattern_XKhfsThe flags of the XKhfs handshake pattern.
Constructor Details
Pattern
private Pattern()Private constructor prevents instantiation
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".