Interface OAuth2TokenKeyService
-
- All Known Implementing Classes:
DefaultOAuth2TokenKeyService,SpringOAuth2TokenKeyService
public interface OAuth2TokenKeyServiceService that targets Identity service (xsuaa and identity) to request Json Web Keys.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default StringretrieveTokenKeys(URI tokenKeysEndpointUri)Deprecated.gets removed in favor ofretrieveTokenKeys(URI, String)with next major version 3.0.0StringretrieveTokenKeys(URI tokenKeysEndpointUri, String zoneId)Requests token web key set from OAuth Server.
-
-
-
Method Detail
-
retrieveTokenKeys
@Deprecated default String retrieveTokenKeys(@Nonnull URI tokenKeysEndpointUri) throws OAuth2ServiceException
Deprecated.gets removed in favor ofretrieveTokenKeys(URI, String)with next major version 3.0.0Same asretrieveTokenKeys(URI, String)except that zoneId is set tonull.- Throws:
OAuth2ServiceException
-
retrieveTokenKeys
String retrieveTokenKeys(@Nonnull URI tokenKeysEndpointUri, @Nullable String zoneId) throws OAuth2ServiceException
Requests token web key set from OAuth Server.- Parameters:
tokenKeysEndpointUri- the token endpoint URI (jku).zoneId- the zone uuid of the tenant. Obligatory parameter in context of multi-tenant IAS applications to make sure that the zone uuid belongs to the IAS tenant.- Returns:
- An endpoint which returns the list of JSON Web Token (JWT) keys as JSON string.
- Throws:
OAuth2ServiceException- in case of an error during the http request.
-
-