public class DefaultAuthenticationHandler extends Object implements AuthenticationHandler
| Constructor and Description |
|---|
DefaultAuthenticationHandler(AuthenticationSecretProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateHMacSHA256(String key,
String data) |
Object |
handleAuth(String clientSignature,
CallMessage message) |
Object |
handleAuthReq(String authKey,
Map<String,Object> extra,
CallMessage message) |
public DefaultAuthenticationHandler(AuthenticationSecretProvider provider)
public Object handleAuthReq(String authKey, Map<String,Object> extra, CallMessage message)
handleAuthReq in interface AuthenticationHandlerpublic Object handleAuth(String clientSignature, CallMessage message)
handleAuth in interface AuthenticationHandlerpublic static String generateHMacSHA256(String key, String data) throws InvalidKeyException, NoSuchAlgorithmException
Copyright © 2014–2017. All rights reserved.