Package io.gopluslabs.client.model
Class GetAccessTokenRequest
- java.lang.Object
-
- io.gopluslabs.client.model.GetAccessTokenRequest
-
public class GetAccessTokenRequest extends Object
GetAccessTokenRequest
-
-
Constructor Summary
Constructors Constructor Description GetAccessTokenRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetAccessTokenRequestappKey(String appKey)booleanequals(Object o)StringgetAppKey()app_keyStringgetSign()Sign Method Concatenate app_key, time, app_secret in turn, and do sha1() .LonggetTime()Quest timestamp (Second), should be within +-1000s around current timestampinthashCode()voidsetAppKey(String appKey)voidsetSign(String sign)voidsetTime(Long time)GetAccessTokenRequestsign(String sign)GetAccessTokenRequesttime(Long time)private StringtoIndentedString(Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).StringtoString()
-
-
-
Method Detail
-
appKey
public GetAccessTokenRequest appKey(String appKey)
-
getAppKey
public String getAppKey()
app_key- Returns:
- appKey
-
setAppKey
public void setAppKey(String appKey)
-
sign
public GetAccessTokenRequest sign(String sign)
-
getSign
public String getSign()
Sign Method Concatenate app_key, time, app_secret in turn, and do sha1() . Example app_key = mBOMg20QW11BbtyH4Zh0 time = 1647847498 app_secret = V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh sign = sha1(mBOMg20QW11BbtyH4Zh01647847498V6aRfxlPJwN3ViJSIFSCdxPvneajuJsh) = 7293d385b9225b3c3f232b76ba97255d0e21063e- Returns:
- sign
-
setSign
public void setSign(String sign)
-
time
public GetAccessTokenRequest time(Long time)
-
getTime
public Long getTime()
Quest timestamp (Second), should be within +-1000s around current timestamp- Returns:
- time
-
setTime
public void setTime(Long time)
-
-