Class OidcDiscoveryClient.Builder
java.lang.Object
org.apache.juneau.rest.auth.oauth.oidc.OidcDiscoveryClient.Builder
- Enclosing class:
- OidcDiscoveryClient
Builder.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the client.httpRequestConfigurator(Consumer<com.nimbusds.oauth2.sdk.http.HTTPRequest> value) Sets the HTTP request configurator.httpTimeout(Duration value) Sets the connect/read timeout applied to the discovery request.Sets the issuer URL.
-
Constructor Details
-
Builder
protected Builder()Constructor.
-
-
Method Details
-
issuer
Sets the issuer URL. Required.- Parameters:
value- The issuer URL.- Returns:
- This object.
-
httpTimeout
Sets the connect/read timeout applied to the discovery request. Default 10 seconds.- Parameters:
value- The timeout. Must not benull and must be positive.- Returns:
- This object.
-
httpRequestConfigurator
public OidcDiscoveryClient.Builder httpRequestConfigurator(Consumer<com.nimbusds.oauth2.sdk.http.HTTPRequest> value) Sets the HTTP request configurator.- Parameters:
value- The callback.- Returns:
- This object.
-
build
Builds the client.- Returns:
- A new
OidcDiscoveryClient. - Throws:
IllegalArgumentException- If the issuer is not"https" and does not target a loopback host.
-