| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final Random | |
| private final String | secKey
Security key string representation, which includes chars and spaces. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| 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 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 |
| KEY_SIZE | back to summary |
|---|---|
| private 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) throws HandshakeException Constructor.
| |
| 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. | |
| 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) throws HandshakeException Validate provided server key.
| |