Class DefaultOAuth2TokenKeyService
- java.lang.Object
-
- com.sap.cloud.security.xsuaa.client.DefaultOAuth2TokenKeyService
-
- All Implemented Interfaces:
OAuth2TokenKeyService
public class DefaultOAuth2TokenKeyService extends Object implements OAuth2TokenKeyService
-
-
Constructor Summary
Constructors Constructor Description DefaultOAuth2TokenKeyService()DefaultOAuth2TokenKeyService(org.apache.http.impl.client.CloseableHttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringretrieveTokenKeys(URI tokenKeysEndpointUri, String zoneId)Requests token web key set from OAuth Server.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sap.cloud.security.xsuaa.client.OAuth2TokenKeyService
retrieveTokenKeys
-
-
-
-
Constructor Detail
-
DefaultOAuth2TokenKeyService
public DefaultOAuth2TokenKeyService()
-
DefaultOAuth2TokenKeyService
public DefaultOAuth2TokenKeyService(@Nonnull org.apache.http.impl.client.CloseableHttpClient httpClient)
-
-
Method Detail
-
retrieveTokenKeys
public String retrieveTokenKeys(URI tokenKeysEndpointUri, @Nullable String zoneId) throws OAuth2ServiceException
Description copied from interface:OAuth2TokenKeyServiceRequests token web key set from OAuth Server.- Specified by:
retrieveTokenKeysin interfaceOAuth2TokenKeyService- 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.
-
-