public class OAuth2PlatformClient extends Object
Modifier | Constructor and Description |
---|---|
protected |
OAuth2PlatformClient()
Hiding the default constructor as OAuth2PlatformClient is always required to function properly
|
|
OAuth2PlatformClient(OAuth2Config oauth2Config) |
Modifier and Type | Method and Description |
---|---|
UserInfoResponse |
getUserInfo(String accessToken)
Method to retrieve UserInfo data associated with the accessToken generated
The response depends on the Scope supplied during openId
|
BearerTokenResponse |
refreshToken(String refreshToken)
Method to renew OAuth2 tokens by passing the refreshToken
|
BearerTokenResponse |
retrieveBearerTokens(String authCode,
String redirectURI)
Method to retrieve OAuth2 access token by passing the redirectURI and authCode
|
PlatformResponse |
revokeToken(String token)
Method to revoke OAuth2 tokens
|
boolean |
validateIDToken(String idToken)
Method to validate IDToken
|
public OAuth2PlatformClient(OAuth2Config oauth2Config)
protected OAuth2PlatformClient()
public BearerTokenResponse retrieveBearerTokens(String authCode, String redirectURI) throws OAuthException
auth_code
- redirectUri
- OAuthException
public BearerTokenResponse refreshToken(String refreshToken) throws OAuthException
refreshToken
- OAuthException
public PlatformResponse revokeToken(String token) throws ConnectionException
token
- ConnectionException
public UserInfoResponse getUserInfo(String accessToken) throws OpenIdException
accessToken
- OpenIdException
public boolean validateIDToken(String idToken) throws OpenIdException
idToken
- clientId
- OpenIdException
Copyright © 2017. All rights reserved.