public interface OAuth2TokenService
| Modifier and Type | Method and Description |
|---|---|
default OAuth2TokenResponse |
retrieveAccessTokenViaClientCredentialsGrant(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaClientCredentialsGrant(URI, ClientCredentials, String, Map, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaClientCredentialsGrant(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String subdomain,
Map<String,String> optionalParameters,
boolean disableCacheForRequest)
Requests access token from OAuth Server with client credentials.
|
default OAuth2TokenResponse |
retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String token,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientCredentials, String, String, Map, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String token,
String subdomain,
Map<String,String> optionalParameters,
boolean disableCacheForRequest) |
default OAuth2TokenResponse |
retrieveAccessTokenViaPasswordGrant(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String username,
String password,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaPasswordGrant(URI, ClientCredentials, String, String, String, Map, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaPasswordGrant(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String username,
String password,
String subdomain,
Map<String,String> optionalParameters,
boolean disableCacheForRequest)
Requests access token from OAuth Server with user / password.
|
default OAuth2TokenResponse |
retrieveAccessTokenViaRefreshToken(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String refreshToken,
String subdomain)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaRefreshToken(URI, ClientCredentials, String, String, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaRefreshToken(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String refreshToken,
String subdomain,
boolean disableCacheForRequest)
Requests access token from OAuth Server with refresh-token.
|
OAuth2TokenResponse |
retrieveAccessTokenViaUserTokenGrant(URI tokenEndpointUri,
ClientCredentials clientCredentials,
String token,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
instead use jwt bearer
{
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientCredentials, String, String, Map)}. |
OAuth2TokenResponse retrieveAccessTokenViaClientCredentialsGrant(@Nonnull URI tokenEndpointUri, @Nonnull ClientCredentials clientCredentials, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientCredentials - the client id and secret of the OAuth client, the recipient of the
token.subdomain - optionally indicates what Identity Zone this request goes to by
supplying a subdomain (tenant).optionalParameters - optional request parameters, can be null.disableCacheForRequest - set to true disables the token cache for this request.OAuth2ServiceException - in case of an error during the http request.@Deprecated default OAuth2TokenResponse retrieveAccessTokenViaClientCredentialsGrant(URI tokenEndpointUri, ClientCredentials clientCredentials, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaClientCredentialsGrant(URI, ClientCredentials, String, Map, boolean)
with next major version 3.0.0retrieveAccessTokenViaClientCredentialsGrant(URI, ClientCredentials, String, Map, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceException@Deprecated OAuth2TokenResponse retrieveAccessTokenViaUserTokenGrant(URI tokenEndpointUri, ClientCredentials clientCredentials, String token, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientCredentials, String, String, Map)}.tokenEndpointUri - the token endpoint URI.clientCredentials - the client id and secret of the OAuth client, the recipient of the
token.token - the user bearer token, that represents an authenticated user.subdomain - optionally indicates what Identity Zone this request goes to by
supplying a subdomain (tenant).optionalParameters - optional request parameters, can be null.OAuth2ServiceException - in case of an error during the http request.OAuth2TokenResponse retrieveAccessTokenViaRefreshToken(URI tokenEndpointUri, ClientCredentials clientCredentials, String refreshToken, @Nullable String subdomain, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientCredentials - the client id and secret of the OAuth client, the recipient of the
token.refreshToken - the refresh token that was returned along with the access token
{link #OAuth2AccessToken}.subdomain - optionally indicates what Identity Zone this request goes to by
supplying a subdomain (tenant).disableCacheForRequest - set to true disables the token cache for this request.OAuth2ServiceException - in case of an error during the http request.@Deprecated default OAuth2TokenResponse retrieveAccessTokenViaRefreshToken(URI tokenEndpointUri, ClientCredentials clientCredentials, String refreshToken, @Nullable String subdomain) throws OAuth2ServiceException
retrieveAccessTokenViaRefreshToken(URI, ClientCredentials, String, String, boolean)
with next major version 3.0.0retrieveAccessTokenViaRefreshToken(URI, ClientCredentials, String, String, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceExceptionOAuth2TokenResponse retrieveAccessTokenViaPasswordGrant(URI tokenEndpointUri, ClientCredentials clientCredentials, String username, String password, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientCredentials - the client id and secret of the OAuth client, the recipient of the
token.username - the username for the user trying to get a tokenpassword - the password for the user trying to get a tokensubdomain - optionally indicates what Identity Zone this request goes to by
supplying a subdomain (tenant).optionalParameters - optional request parameters, can be null.disableCacheForRequest - set to true disables the token cache for this request.OAuth2ServiceException - in case of an error during the http request.@Deprecated default OAuth2TokenResponse retrieveAccessTokenViaPasswordGrant(URI tokenEndpointUri, ClientCredentials clientCredentials, String username, String password, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaPasswordGrant(URI, ClientCredentials, String, String, String, Map, boolean)
with next major version 3.0.0retrieveAccessTokenViaPasswordGrant(URI, ClientCredentials, String, String, String, Map, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceExceptionOAuth2TokenResponse retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri, ClientCredentials clientCredentials, String token, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientCredentials - the client id and secret of the OAuth client, the recipient of the
token.token - the JWT token identifying representing the user to be
authenticatedsubdomain - optionally indicates what Identity Zone this request goes to by
supplying a subdomain (tenant).optionalParameters - optional request parameters, can be null.disableCacheForRequest - set to true disables the token cache for this request.OAuth2ServiceException - in case of an error during the http request.@Deprecated default OAuth2TokenResponse retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri, ClientCredentials clientCredentials, String token, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientCredentials, String, String, Map, boolean)
with next major version 3.0.0retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientCredentials, String, String, Map, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceExceptionCopyright © 2020. All rights reserved.