public interface OAuth2TokenService
| Modifier and Type | Method and Description |
|---|---|
default OAuth2TokenResponse |
retrieveAccessTokenViaClientCredentialsGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaClientCredentialsGrant(URI, ClientIdentity, String, Map, boolean)
with next major version 3.0.0 |
default OAuth2TokenResponse |
retrieveAccessTokenViaClientCredentialsGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String subdomain,
Map<String,String> optionalParameters,
boolean disableCacheForRequest)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaClientCredentialsGrant(URI, ClientIdentity, String, String, Map, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaClientCredentialsGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String zoneId,
String subdomain,
Map<String,String> optionalParameters,
boolean disableCacheForRequest)
Requests access token from OAuth Server with client credentials.
|
OAuth2TokenResponse |
retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String token,
Map<String,String> optionalParameters,
boolean disableCache,
String xZid) |
default OAuth2TokenResponse |
retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String token,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientIdentity, String, String, Map, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String token,
String subdomain,
Map<String,String> optionalParameters,
boolean disableCacheForRequest) |
default OAuth2TokenResponse |
retrieveAccessTokenViaPasswordGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String username,
String password,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaPasswordGrant(URI, ClientIdentity, String, String, String, Map, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaPasswordGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
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,
ClientIdentity clientIdentity,
String refreshToken,
String subdomain)
Deprecated.
gets removed in favor of
retrieveAccessTokenViaRefreshToken(URI, ClientIdentity, String, String, boolean)
with next major version 3.0.0 |
OAuth2TokenResponse |
retrieveAccessTokenViaRefreshToken(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String refreshToken,
String subdomain,
boolean disableCacheForRequest)
Requests access token from OAuth Server with refresh-token.
|
OAuth2TokenResponse |
retrieveAccessTokenViaUserTokenGrant(URI tokenEndpointUri,
ClientIdentity clientIdentity,
String token,
String subdomain,
Map<String,String> optionalParameters)
Deprecated.
instead use jwt bearer
{
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientIdentity, String, String, Map)}. |
@Deprecated default OAuth2TokenResponse retrieveAccessTokenViaClientCredentialsGrant(@Nonnull URI tokenEndpointUri, @Nonnull ClientIdentity clientIdentity, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters, boolean disableCacheForRequest) throws OAuth2ServiceException
retrieveAccessTokenViaClientCredentialsGrant(URI, ClientIdentity, String, String, Map, boolean)
with next major version 3.0.0tokenEndpointUri - the token endpoint URI.clientIdentity - the client identity 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.OAuth2TokenResponse retrieveAccessTokenViaClientCredentialsGrant(@Nonnull URI tokenEndpointUri, @Nonnull ClientIdentity clientIdentity, @Nullable String zoneId, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientIdentity - the client identity of the OAuth client, the recipient of the
token.zoneId - Zone identifier - tenant discriminatorsubdomain - 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, ClientIdentity clientIdentity, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaClientCredentialsGrant(URI, ClientIdentity, String, Map, boolean)
with next major version 3.0.0retrieveAccessTokenViaClientCredentialsGrant(URI, ClientIdentity, String, Map, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceException@Deprecated OAuth2TokenResponse retrieveAccessTokenViaUserTokenGrant(URI tokenEndpointUri, ClientIdentity clientIdentity, String token, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientIdentity, String, String, Map)}.tokenEndpointUri - the token endpoint URI.clientIdentity - the client identity 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, ClientIdentity clientIdentity, String refreshToken, @Nullable String subdomain, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientIdentity - the client identity 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, ClientIdentity clientIdentity, String refreshToken, @Nullable String subdomain) throws OAuth2ServiceException
retrieveAccessTokenViaRefreshToken(URI, ClientIdentity, String, String, boolean)
with next major version 3.0.0retrieveAccessTokenViaRefreshToken(URI, ClientIdentity, String, String, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceExceptionOAuth2TokenResponse retrieveAccessTokenViaPasswordGrant(URI tokenEndpointUri, ClientIdentity clientIdentity, String username, String password, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientIdentity - the client identity 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, ClientIdentity clientIdentity, String username, String password, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaPasswordGrant(URI, ClientIdentity, String, String, String, Map, boolean)
with next major version 3.0.0retrieveAccessTokenViaPasswordGrant(URI, ClientIdentity, String, String, String, Map, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceExceptionOAuth2TokenResponse retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri, ClientIdentity clientIdentity, String token, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters, boolean disableCacheForRequest) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientIdentity - the client identity 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, ClientIdentity clientIdentity, String token, @Nullable String subdomain, @Nullable Map<String,String> optionalParameters) throws OAuth2ServiceException
retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientIdentity, String, String, Map, boolean)
with next major version 3.0.0retrieveAccessTokenViaJwtBearerTokenGrant(URI, ClientIdentity, String, String, Map, boolean)
except that disableCacheForRequest is set to false.OAuth2ServiceExceptionOAuth2TokenResponse retrieveAccessTokenViaJwtBearerTokenGrant(URI tokenEndpointUri, ClientIdentity clientIdentity, @Nonnull String token, @Nullable Map<String,String> optionalParameters, boolean disableCache, @Nonnull String xZid) throws OAuth2ServiceException
tokenEndpointUri - the token endpoint URI.clientIdentity - the client identity of the OAuth client, the recipient of the
token.token - the JWT token identifying representing the user to be
authenticatedoptionalParameters - optional request parameters, can be null.disableCache - setting to true disables the token cache for this request.xZid - zone id of the tenantOAuth2ServiceException - in case of an error during the http request.Copyright © 2023. All rights reserved.