public class DefaultOAuth2TokenKeyService extends Object implements OAuth2TokenKeyService
| Constructor and Description |
|---|
DefaultOAuth2TokenKeyService() |
DefaultOAuth2TokenKeyService(org.apache.http.impl.client.CloseableHttpClient httpClient) |
| Modifier and Type | Method and Description |
|---|---|
String |
retrieveTokenKeys(URI tokenKeysEndpointUri,
Map<String,String> params)
Retrieves the JWKS (JSON Web Key Set) from the OAuth2 Server.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitretrieveTokenKeys, retrieveTokenKeys, retrieveTokenKeyspublic DefaultOAuth2TokenKeyService()
public DefaultOAuth2TokenKeyService(@Nonnull org.apache.http.impl.client.CloseableHttpClient httpClient)
public String retrieveTokenKeys(@Nonnull URI tokenKeysEndpointUri, Map<String,String> params) throws OAuth2ServiceException
OAuth2TokenKeyServiceretrieveTokenKeys in interface OAuth2TokenKeyServicetokenKeysEndpointUri - the JWKS endpoint URI.params - additional header parameters that are sent along with the request. Use constants from HttpHeaders for the header keys.OAuth2ServiceException - in case of an error during the http request.Copyright © 2023. All rights reserved.