public class Authentication extends Object
| 构造器和说明 |
|---|
Authentication() |
Authentication(Authentication clone) |
Authentication(String apiKey,
String secretKey) |
Authentication(String apiKey,
String secretKey,
TokenType authenticationType) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
authenticate(HttpURLConnection httpConn,
String url) |
String |
getAccessToken() |
TokenType |
getAccessTokenType() |
String |
getAppId() |
String |
getSecretKey() |
boolean |
hasAccessToken() |
boolean |
hasAccessTokenType() |
boolean |
hasAppId() |
boolean |
hasSecretKey() |
void |
setAccessToken(String accessToken) |
void |
setAccessTokenType(TokenType accessTokenType) |
Authentication |
setAppId(String appId) |
Authentication |
setSecretKey(String secretKey) |
public Authentication()
public Authentication(Authentication clone) throws SignitException
SignitExceptionpublic String getAppId()
public Authentication setAppId(String appId)
public boolean hasAppId()
public String getSecretKey()
public Authentication setSecretKey(String secretKey)
public boolean hasSecretKey()
public String getAccessToken()
public void setAccessToken(String accessToken)
public TokenType getAccessTokenType()
public void setAccessTokenType(TokenType accessTokenType)
public boolean hasAccessTokenType()
public boolean hasAccessToken()
public void authenticate(HttpURLConnection httpConn, String url)
Copyright © 2024. All rights reserved.