Class SpringOAuth2TokenKeyService
java.lang.Object
com.sap.cloud.security.xsuaa.client.SpringOAuth2TokenKeyService
- All Implemented Interfaces:
OAuth2TokenKeyService
-
Constructor Summary
ConstructorsConstructorDescriptionSpringOAuth2TokenKeyService(org.springframework.web.client.RestOperations restOperations) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.security.xsuaa.client.OAuth2TokenKeyService
retrieveTokenKeys, retrieveTokenKeys
-
Constructor Details
-
SpringOAuth2TokenKeyService
public SpringOAuth2TokenKeyService(@Nonnull org.springframework.web.client.RestOperations restOperations)
-
-
Method Details
-
retrieveTokenKeys
public String retrieveTokenKeys(@Nonnull URI tokenKeysEndpointUri, Map<String, String> params) throws OAuth2ServiceExceptionDescription copied from interface:OAuth2TokenKeyServiceRetrieves the JWKS (JSON Web Key Set) from the OAuth2 Server.- Specified by:
retrieveTokenKeysin interfaceOAuth2TokenKeyService- Parameters:
tokenKeysEndpointUri- the JWKS endpoint URI.params- additional header parameters that are sent along with the request. Use constants fromHttpHeadersfor the header keys.- Returns:
- a JWKS in JSON format.
- Throws:
OAuth2ServiceException- in case of an error during the http request.
-