public abstract class OAuth2UserImpl extends AbstractUser implements AccessToken
| Modifier and Type | Field and Description |
|---|---|
protected JsonObject |
accessToken |
protected JsonObject |
idToken |
protected JsonObject |
refreshToken |
| Constructor and Description |
|---|
OAuth2UserImpl() |
OAuth2UserImpl(OAuth2Auth provider,
JsonObject principal) |
| Modifier and Type | Method and Description |
|---|---|
JsonObject |
accessToken()
The Access Token if present parsed as a JsonObject
|
protected JsonObject |
decodeToken(String tokenType) |
protected JsonObject |
decodeToken(String tokenType,
boolean trust) |
protected void |
doIsPermitted(String permission,
Handler<AsyncResult<Boolean>> resultHandler) |
boolean |
expired()
Check if the access token is expired or not.
|
protected OAuth2AuthProviderImpl |
getProvider() |
JsonObject |
idToken()
The Id Token if present parsed as a JsonObject
|
protected void |
init(JsonObject json) |
String |
opaqueAccessToken()
The RAW String if available for the Access Token
|
String |
opaqueIdToken()
The RAW String if available for the Id Token
|
String |
opaqueRefreshToken()
The RAW String if available for the Refresh Token
|
JsonObject |
principal()
Get the underlying principal for the User.
|
int |
readFromBuffer(int pos,
Buffer buff) |
JsonObject |
refreshToken()
Deprecated.
|
void |
setAuthProvider(AuthProvider authProvider)
Set the auth provider for the User.
|
void |
writeToBuffer(Buffer buff) |
cachePermission, clearCache, isAuthorizedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfetch, fetch, introspect, introspect, logout, refresh, revoke, setTrustJWT, tokenType, userInfoclearCache, isAuthorised, isAuthorizedprotected transient JsonObject accessToken
protected transient JsonObject refreshToken
protected transient JsonObject idToken
public OAuth2UserImpl()
public OAuth2UserImpl(OAuth2Auth provider, JsonObject principal)
protected void init(JsonObject json)
public void setAuthProvider(AuthProvider authProvider)
UsersetAuthProvider in interface UserauthProvider - the AuthProvider - this must be the same type of AuthProvider that originally created the Userprotected OAuth2AuthProviderImpl getProvider()
public JsonObject principal()
User
{
"username", "tim"
}
protected void doIsPermitted(String permission, Handler<AsyncResult<Boolean>> resultHandler)
doIsPermitted in class AbstractUserpublic void writeToBuffer(Buffer buff)
writeToBuffer in interface ClusterSerializablewriteToBuffer in class AbstractUserpublic int readFromBuffer(int pos,
Buffer buff)
readFromBuffer in interface ClusterSerializablereadFromBuffer in class AbstractUserprotected JsonObject decodeToken(String tokenType)
protected JsonObject decodeToken(String tokenType, boolean trust)
public String opaqueAccessToken()
AccessTokenopaqueAccessToken in interface AccessTokenpublic String opaqueRefreshToken()
AccessTokenopaqueRefreshToken in interface AccessTokenpublic String opaqueIdToken()
AccessTokenopaqueIdToken in interface AccessTokenpublic JsonObject accessToken()
AccessTokenaccessToken in interface AccessToken@Deprecated public JsonObject refreshToken()
AccessTokenrefreshToken in interface AccessTokenpublic JsonObject idToken()
AccessTokenidToken in interface AccessTokenpublic boolean expired()
expired in interface AccessTokenCopyright © 2020. All rights reserved.