Class WebSocketUtils

java.lang.Object
org.eclipse.jetty.websocket.core.util.WebSocketUtils

public final class WebSocketUtils extends Object
  • Constructor Details

    • WebSocketUtils

      public WebSocketUtils()
  • Method Details

    • hashKey

      public static String hashKey(String key)
      Concatenate the provided key with the Magic GUID and return the Base64 encoded form.
      Parameters:
      key - the key to hash
      Returns:
      the Sec-WebSocket-Accept header response (per opening handshake spec)