public interface Authenticator
| Modifier and Type | Method and Description |
|---|---|
void |
done()
finish authenticate phase.
|
String |
getCredentials(String method,
String requestUri,
HttpHeader header,
String authenticateHeaderName)
Gets the credentials.
|
void |
init(WebSocket websocket,
Credentials credentials)
inits authenticator
|
boolean |
isDone() |
boolean |
isNeedAuthenticate() |
String getCredentials(String method, String requestUri, HttpHeader header, String authenticateHeaderName) throws WebSocketException
method - request method GET,POST,CONNECT(proxy)requestUri - the request uriheader - http headerauthenticateHeaderName - the authenticate header nameWebSocketException - the web socket exceptionvoid init(WebSocket websocket, Credentials credentials)
websocket - the websocketcredentials - the credentialsvoid done()
boolean isNeedAuthenticate()
boolean isDone()
Copyright © 2021. All rights reserved.