Class DefaultOpenIdConnectDiscoveryClient
java.lang.Object
com.aquima.web.boot.security.openid.DefaultOpenIdConnectDiscoveryClient
- All Implemented Interfaces:
OpenIdConnectDiscoveryClient
public class DefaultOpenIdConnectDiscoveryClient
extends Object
implements OpenIdConnectDiscoveryClient
Default implementation of the OpenID Connect Discovery Client.
- Since:
- 11.5
- Author:
- Voicu Moldovan
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultOpenIdConnectDiscoveryClient
(org.springframework.web.client.RestTemplate restTemplate) -
Method Summary
Modifier and TypeMethodDescriptionRequests the JSON Web Keys from the keys endpoint.getWellKnownMetadata
(String issuer) Requests the OpenID Connect Provider Metadata from the discovery end point.
-
Constructor Details
-
DefaultOpenIdConnectDiscoveryClient
public DefaultOpenIdConnectDiscoveryClient(org.springframework.web.client.RestTemplate restTemplate)
-
-
Method Details
-
getKeys
Description copied from interface:OpenIdConnectDiscoveryClient
Requests the JSON Web Keys from the keys endpoint.- Specified by:
getKeys
in interfaceOpenIdConnectDiscoveryClient
- Parameters:
jwksUri
- the URL of the OpenID Provider's JSON Web Key Set [JWK] document. This contains the signing key(s) the Relying Party uses to validate signatures from the OpenID Provider.- Returns:
- Response object containing the map of keys
-
getWellKnownMetadata
Description copied from interface:OpenIdConnectDiscoveryClient
Requests the OpenID Connect Provider Metadata from the discovery end point.- Specified by:
getWellKnownMetadata
in interfaceOpenIdConnectDiscoveryClient
- Parameters:
issuer
- the OpenID Connect token issuer.- Returns:
- The response object containing the OperID Connect Configuration.
- Throws:
OpenIdConnectException
-