Modifier and Type | Field and Description |
---|---|
static int |
KEY_SIZE |
Modifier and Type | Method and Description |
---|---|
static SecKey |
generateServerKey(SecKey clientKey)
Generate server-side security key, which gets passed to the client during
the handshake phase as part of message payload.
|
byte[] |
getBytes() |
String |
getSecKey()
Gets security key string representation, which includes chars and spaces.
|
String |
toString() |
void |
validateServerKey(String serverKey) |
public static final int KEY_SIZE
public SecKey()
public SecKey(String base64)
public static SecKey generateServerKey(SecKey clientKey) throws HandshakeException
clientKey
- client's Sec-WebSocket-KeyHandshakeException
public String getSecKey()
public byte[] getBytes()
public void validateServerKey(String serverKey)
Copyright © 2014 Oracle Corporation. All rights reserved.