Package io.vertx.mutiny.ext.web.client
Class OAuth2WebClient
java.lang.Object
io.vertx.mutiny.ext.web.client.WebClient
io.vertx.mutiny.ext.web.client.OAuth2WebClient
- All Implemented Interfaces:
MutinyDelegate
An asynchronous OAuth2/OIDC aware HTTP / HTTP/2 client called
WebClientOAuth2.
This client wraps a WebClient and makes it session aware adding features to it:
- Request an
access_tokenif no user is created - Refresh
access_tokenif current user is expired
NOTE: This class has been automatically generated from the
original non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2WebClient(io.vertx.ext.web.client.OAuth2WebClient delegate) OAuth2WebClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2WebClientcreate(WebClient webClient, OAuth2Auth oAuth2Auth) static OAuth2WebClientcreate(WebClient webClient, OAuth2Auth oAuth2Auth, io.vertx.ext.web.client.OAuth2WebClientOptions options) booleanio.vertx.ext.web.client.OAuth2WebClientgetUser()inthashCode()static OAuth2WebClientnewInstance(io.vertx.ext.web.client.OAuth2WebClient arg) toString()withCredentials(io.vertx.ext.auth.authentication.Credentials credentials) Methods inherited from class io.vertx.mutiny.ext.web.client.WebClient
close, create, create, delete, delete, delete, delete, delete, delete, deleteAbs, deleteAbs, get, get, get, get, get, get, getAbs, getAbs, head, head, head, head, head, head, headAbs, headAbs, newInstance, patch, patch, patch, patch, patch, patch, patchAbs, patchAbs, post, post, post, post, post, post, postAbs, postAbs, put, put, put, put, put, put, putAbs, putAbs, request, request, request, request, request, request, request, request, request, request, request, request, request, request, requestAbs, requestAbs, requestAbs, requestAbs, updateSSLOptions, updateSSLOptions, updateSSLOptionsAndAwait, updateSSLOptionsAndAwait, updateSSLOptionsAndForget, updateSSLOptionsAndForget, wrap, wrap
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
OAuth2WebClient
public OAuth2WebClient(io.vertx.ext.web.client.OAuth2WebClient delegate) -
OAuth2WebClient
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.client.OAuth2WebClient getDelegate()- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classWebClient- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
webClient- the web client instanceoAuth2Auth- Configured oAuth2Auth provider to be used whenwithCredentials(io.vertx.ext.auth.authentication.Credentials)used- Returns:
- the created client
-
create
public static OAuth2WebClient create(WebClient webClient, OAuth2Auth oAuth2Auth, io.vertx.ext.web.client.OAuth2WebClientOptions options) - Parameters:
webClient- the web client instanceoAuth2Auth- Configured oAuth2Auth provider to be used whenwithCredentials(io.vertx.ext.auth.authentication.Credentials)usedoptions- extra configuration for this object- Returns:
- the created client
-
getUser
- Returns:
- the current user associated with this client or null if no user is associated
-
withCredentials
- Parameters:
credentials-- Returns:
- a reference to this, so the API can be used fluently
-
newInstance
-