Interface OAuth2TokenKeyService
- All Known Implementing Classes:
DefaultOAuth2TokenKeyService,SpringOAuth2TokenKeyService
public interface OAuth2TokenKeyService
Service that targets Identity service (xsuaa and identity) to request Json
Web Keys.
-
Method Summary
Modifier and TypeMethodDescriptionretrieveTokenKeys(URI tokenKeysEndpointUri, String zoneId) Requests token web key set from OAuth Server.
-
Method Details
-
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.
-