Class Pattern

java.lang.Object
com.southernstorm.noise.protocol.Pattern

class Pattern extends Object
Information about all supported handshake patterns.
  • Field Details

  • Method Details

    • lookup

      public static short[] lookup(String name)
      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".