Class SpringOAuth2TokenKeyService

    • Constructor Detail

      • SpringOAuth2TokenKeyService

        public SpringOAuth2TokenKeyService​(@Nonnull
                                           org.springframework.web.client.RestOperations restOperations)
    • Method Detail

      • retrieveTokenKeys

        public String retrieveTokenKeys​(@Nonnull
                                        URI tokenKeysEndpointUri,
                                        @Nullable
                                        String zoneId)
                                 throws OAuth2ServiceException
        Description copied from interface: OAuth2TokenKeyService
        Requests token web key set from OAuth Server.
        Specified by:
        retrieveTokenKeys in interface OAuth2TokenKeyService
        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.