public abstract class AbstractAuthenticator extends Object implements Authenticator
| 限定符和类型 | 字段和说明 |
|---|---|
protected Credentials |
credentials
The credentials.
|
protected WebSocket |
websocket
The websocket.
|
| 构造器和说明 |
|---|
AbstractAuthenticator()
Instantiates a new abstract authenticator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
done()
finish authenticate phase.
|
abstract String |
getCredentials(List<Challenge> challengeList)
Gets the credentials.
|
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() |
protected void |
parseParams(Map<String,String> paramMap,
String authParams) |
protected WebSocket websocket
protected Credentials credentials
public AbstractAuthenticator()
public String getCredentials(String method, String requestUri, HttpHeader header, String authenticateHeaderName) throws WebSocketException
AuthenticatorgetCredentials 在接口中 Authenticatormethod - request method GET,POST,CONNECT(proxy)requestUri - the request uriheader - http headerauthenticateHeaderName - the authenticate header nameWebSocketException - the web socket exceptionpublic abstract String getCredentials(List<Challenge> challengeList) throws WebSocketException
challengeList - the challenge listWebSocketException - the web socket exceptionpublic void init(WebSocket websocket, Credentials credentials)
Authenticatorinit 在接口中 Authenticatorwebsocket - the websocketcredentials - the credentialspublic void done()
Authenticatordone 在接口中 Authenticatorpublic boolean isDone()
isDone 在接口中 Authenticatorpublic boolean isNeedAuthenticate()
isNeedAuthenticate 在接口中 AuthenticatorCopyright © 2020. All rights reserved.