Security
class Security
Constants
| VERSION |
|
| PATTERN |
|
| KEY |
|
| SEC_WEBSOCKET_KEY |
|
| SEC_WEBSOCKET_PROTOCOL |
|
Methods
bool
isInvalidSecurityKey(string $key)
Determine if the given key is an invalid WebSocket security key.
array
handshakeHeaders(string $key)
Get the headers for the WebSocket handshake response.
string
sign(string $key)
Sign the WebSocket key.
Details
at line 22
bool
isInvalidSecurityKey(string $key)
Determine if the given key is an invalid WebSocket security key.
at line 32
array
handshakeHeaders(string $key)
Get the headers for the WebSocket handshake response.
at line 45
string
sign(string $key)
Sign the WebSocket key.