Class OkHttpTokenizeOauth
-
- All Implemented Interfaces:
-
pro.fessional.wings.slardar.httprest.okhttp.OkHttpTokenClient.Tokenize
public class OkHttpTokenizeOauth implements OkHttpTokenClient.Tokenize
- Since:
2022-11-26
trydofor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classOkHttpTokenizeOauth.Token
-
Field Summary
Fields Modifier and Type Field Description public final static StringAuthHeaderpublic final static StringBearerPrefixpublic final static StringAuthorizationCodepublic final static StringClientCredentialspublic final static StringRefreshTokenpublic StringclientIdpublic StringclientSecretpublic StringredirectUripublic Stringscopespublic StringauthorizeUrlpublic StringaccessTokenUrlpublic StringheaderAcceptpublic StringheaderUserAgentpublic StringkeyGrantTypepublic StringvalRefreshTokenpublic StringvalAccessTokenpublic StringkeyRefreshTokenpublic StringkeyClientIdpublic StringkeyRedirectUripublic StringkeyResponseTypepublic StringvalResponseTypeCodepublic StringkeyScopepublic StringkeyStatepublic StringkeyAuthorizationCodepublic StringkeyCodepublic StringkeyClientSecretpublic StringkeyAccessTokenpublic StringkeyExpiresInpublic intexpireBuffpublic transient OkHttpTokenizeOauth.Tokentoken
-
Constructor Summary
Constructors Constructor Description OkHttpTokenizeOauth()
-
Method Summary
-
-
Method Detail
-
getClientId
String getClientId()
-
setClientId
void setClientId(String clientId)
-
getClientSecret
String getClientSecret()
-
setClientSecret
void setClientSecret(String clientSecret)
-
getRedirectUri
String getRedirectUri()
-
setRedirectUri
void setRedirectUri(String redirectUri)
-
getAuthorizeUrl
String getAuthorizeUrl()
-
setAuthorizeUrl
void setAuthorizeUrl(String authorizeUrl)
-
getAccessTokenUrl
String getAccessTokenUrl()
-
setAccessTokenUrl
void setAccessTokenUrl(String accessTokenUrl)
-
getHeaderAccept
String getHeaderAccept()
-
setHeaderAccept
void setHeaderAccept(String headerAccept)
-
getHeaderUserAgent
String getHeaderUserAgent()
-
setHeaderUserAgent
void setHeaderUserAgent(String headerUserAgent)
-
getKeyGrantType
String getKeyGrantType()
Only support AuthorizationCode ClientCredentials
-
setKeyGrantType
void setKeyGrantType(String keyGrantType)
Only support AuthorizationCode ClientCredentials
-
getValRefreshToken
String getValRefreshToken()
-
setValRefreshToken
void setValRefreshToken(String valRefreshToken)
-
getValAccessToken
String getValAccessToken()
-
setValAccessToken
void setValAccessToken(String valAccessToken)
-
getKeyRefreshToken
String getKeyRefreshToken()
-
setKeyRefreshToken
void setKeyRefreshToken(String keyRefreshToken)
-
getKeyClientId
String getKeyClientId()
-
setKeyClientId
void setKeyClientId(String keyClientId)
-
getKeyRedirectUri
String getKeyRedirectUri()
-
setKeyRedirectUri
void setKeyRedirectUri(String keyRedirectUri)
-
getKeyResponseType
String getKeyResponseType()
-
setKeyResponseType
void setKeyResponseType(String keyResponseType)
-
getValResponseTypeCode
String getValResponseTypeCode()
-
setValResponseTypeCode
void setValResponseTypeCode(String valResponseTypeCode)
-
getKeyScope
String getKeyScope()
-
setKeyScope
void setKeyScope(String keyScope)
-
getKeyState
String getKeyState()
-
setKeyState
void setKeyState(String keyState)
-
getKeyAuthorizationCode
String getKeyAuthorizationCode()
-
setKeyAuthorizationCode
void setKeyAuthorizationCode(String keyAuthorizationCode)
-
getKeyCode
String getKeyCode()
-
setKeyCode
void setKeyCode(String keyCode)
-
getKeyClientSecret
String getKeyClientSecret()
-
setKeyClientSecret
void setKeyClientSecret(String keyClientSecret)
-
getKeyAccessToken
String getKeyAccessToken()
-
setKeyAccessToken
void setKeyAccessToken(String keyAccessToken)
-
getKeyExpiresIn
String getKeyExpiresIn()
-
setKeyExpiresIn
void setKeyExpiresIn(String keyExpiresIn)
-
getExpireBuff
int getExpireBuff()
expiration (ms) of buffer, should avoid expiration
-
setExpireBuff
void setExpireBuff(int expireBuff)
expiration (ms) of buffer, should avoid expiration
-
getToken
OkHttpTokenizeOauth.Token getToken()
-
setToken
void setToken(OkHttpTokenizeOauth.Token token)
-
needToken
boolean needToken(@NotNull() Request request)
Whether to need token
-
fillToken
boolean fillToken(Request.Builder builder)
Set a valid token, usually in the header. `false` means the token is not valid, should try init
-
initToken
boolean initToken(@NotNull() Call.Factory callFactory)
try init token
-
-
-
-