public class WebSocketChallenge08
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GUID |
static java.lang.String |
SHA1 |
Constructor and Description |
---|
WebSocketChallenge08() |
Modifier and Type | Method and Description |
---|---|
protected void |
generateNonce() |
java.lang.String |
getNonceBase64() |
static java.lang.String |
solve(java.lang.String nonceBase64) |
boolean |
verify(java.lang.String solution) |
public static final java.lang.String GUID
public static final java.lang.String SHA1
public WebSocketChallenge08() throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
protected void generateNonce()
public java.lang.String getNonceBase64()
public static java.lang.String solve(java.lang.String nonceBase64) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public boolean verify(java.lang.String solution) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException