@Override
public void afterResponse(HandshakeResponse hr) {
super.afterResponse(hr);
if( wsHmac != null ) {
try {
Log.log(Level.FINEST, drain, "Validating HMAC supplied for WS");
wsHmac.wsVerifySignature(new SignedRequestMap.MLS_StringMap(hr.getHeaders()));
Log.log(Level.FINEST, drain, "Validating HMAC result is {0}", responseValid);
} catch (Exception e) {
Log.log(Level.FINEST, drain, "Failed to validate HMAC, unable to establish connection", e);
}
} else {
Log.log(Level.INFO, drain, "No token supplied for room, skipping WS handshake validation");
responseValid = true;
}
}
WebSocketClientConnection.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:gameon-mediator
作者:
评论列表
文章目录