WebSocket's security key, used during the handshake phase.
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| public static final int | |
| private static final Random | |
| private final String | secKey
Security key string representation, which includes chars and spaces. |
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public static SecKey | Returns: server key.client's Sec-WebSocket-Key clientKey)Generate server-side security key, which gets passed to the client during the handshake phase as part of message payload. |
| public byte[] | |
| public String | Returns: Security key string representation, which includes chars and spaces.Gets security key string representation, which includes chars and spaces. |
| public String | |
| public void |
| bytes | back to summary |
|---|---|
| private byte[] bytes | |
| KEY_SIZE | back to summary |
|---|---|
| public static final int KEY_SIZE | |
| random | back to summary |
|---|---|
| private static final Random random | |
| secKey | back to summary |
|---|---|
| private final String secKey Security key string representation, which includes chars and spaces. | |
| SecKey | back to summary |
|---|---|
| public SecKey() | |
| SecKey | back to summary |
|---|---|
| public SecKey(String base64) | |
| create | back to summary |
|---|---|
| private String create() | |
| generateServerKey | back to summary |
|---|---|
| public static SecKey generateServerKey(SecKey clientKey) throws HandshakeException Generate server-side security key, which gets passed to the client during the handshake phase as part of message payload. | |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() | |
| getSecKey | back to summary |
|---|---|
| public String getSecKey() Gets security key string representation, which includes chars and spaces.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| validateServerKey | back to summary |
|---|---|
| public void validateServerKey(String serverKey) | |