Top Constructors Methods
org.eclipse.jetty.websocket.core.util

public final Class WebSocketUtils

extends Object
Class Inheritance
Imports
java.nio.charset.StandardCharsets, java.security.MessageDigest, java.util.Base64, org.eclipse.jetty.websocket.core.WebSocketConstants

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String

Returns:

the Sec-WebSocket-Accept header response (per opening handshake spec)
hashKey
(String
the key to hash
key
)

Concatenate the provided key with the Magic GUID and return the Base64 encoded form.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

WebSocketUtilsback to summary
public WebSocketUtils()

Method Detail

hashKeyback to summary
public static String hashKey(String key)

Concatenate the provided key with the Magic GUID and return the Base64 encoded form.

Parameters
key:String

the key to hash

Returns:String

the Sec-WebSocket-Accept header response (per opening handshake spec)