public class Hybi00Handshake extends Handshake
Constructor and Description |
---|
Hybi00Handshake() |
Modifier and Type | Method and Description |
---|---|
static long |
decodeKey(String encoded) |
byte[] |
generateResponse(HttpRequestBridge request,
HttpResponseBridge response) |
OioWebSocket |
getWebSocket(HttpRequestBridge request,
HttpResponseBridge response,
ClosingStrategy closingStrategy) |
boolean |
matches(HttpRequestBridge request) |
static byte[] |
solve(String hashAlgorithm,
long key1,
long key2,
byte[] key3) |
static byte[] |
solve(String hashAlgorithm,
String encodedKey1,
String encodedKey2,
byte[] key3) |
getHashAlgorithm, getMagicNumber, getVersion, getWebSocketLocation
public boolean matches(HttpRequestBridge request)
public OioWebSocket getWebSocket(HttpRequestBridge request, HttpResponseBridge response, ClosingStrategy closingStrategy) throws IOException
getWebSocket
in class Handshake
IOException
public byte[] generateResponse(HttpRequestBridge request, HttpResponseBridge response) throws IOException
generateResponse
in class Handshake
IOException
public static byte[] solve(String hashAlgorithm, String encodedKey1, String encodedKey2, byte[] key3)
public static byte[] solve(String hashAlgorithm, long key1, long key2, byte[] key3)
public static long decodeKey(String encoded)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.