org.refcodes.mixin.Disposable
, org.refcodes.mixin.Disposable.Disposedable
, org.refcodes.mixin.DisposedAccessor
, org.refcodes.mixin.ValidAccessor
OauthTokenImpl
public interface OauthToken
extends org.refcodes.mixin.ValidAccessor, org.refcodes.mixin.Disposable.Disposedable
HTTP/1.1 200 OK
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache
{
"access_token":"MTQ0NjJkZmQ5OTM2NDE1ZTZjNGZmZjI3",
"token_type":"bearer",
"expires_in":3600,
"refresh_token":"IwOGYzYTlmM2YxOTQ5MGE3YmNmMDFkNTVk",
"scope":"create"
}
See
"https://www.oauth.com/oauth2-servers/access-tokens/access-token-response"org.refcodes.mixin.Disposable.Disposedable
Modifier and Type | Method | Description |
---|---|---|
String |
getAccessToken() |
Returns the access token.
|
Integer |
getExpiresIn() |
Returns the time in seconds till the access token
(
getAccessToken() ) expires. |
String |
getNotBeforePolicy() |
Returns the not-before-policy.
|
Integer |
getRefreshExpiresIn() |
Returns the time in seconds till the refresh token
(
getRefreshToken() ) expires. |
String |
getRefreshToken() |
Returns the refresh token.
|
String |
getScope() |
Returns the OAuth scope.
|
String |
getSessionState() |
Returns the session state.
|
String |
getTokenType() |
Returns the token type.
|
boolean |
isValid() |
Returns always
true if no "expires in" time
(getExpiresIn() ) has been set! |
String getAccessToken()
String getRefreshToken()
String getScope()
String getNotBeforePolicy()
String getSessionState()
String getTokenType()
Integer getExpiresIn()
getAccessToken()
) expires. "If the access token expires, the
server should reply with the duration of time the access token is granted
for." See
"https://www.oauth.com/oauth2-servers/access-tokens/access-token-response"Integer getRefreshExpiresIn()
getRefreshToken()
) expires.boolean isValid()
true
if no "expires in" time
(getExpiresIn()
) has been set!isValid
in interface org.refcodes.mixin.ValidAccessor
Copyright © 2021. All rights reserved.