Class AcceptHash
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.AcceptHash
-
public class AcceptHash extends java.lang.Object
Logic for working with theSec-WebSocket-Key
andSec-WebSocket-Accept
headers.This is kept separate from Connection objects to facilitate difference in behavior between client and server, as well as making testing easier.
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
MAGIC
Globally Unique Identifier for use in WebSocket handshake withinSec-WebSocket-Accept
andSec-WebSocket-Key
http headers.
-
Constructor Summary
Constructors Constructor Description AcceptHash()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
hashKey(java.lang.String key)
Concatenate the provided key with the Magic GUID and return the Base64 encoded form.
-