- java.lang.Object
-
- vertx.effect.httpclient.oauth.GetAccessTokenRequest
-
- All Implemented Interfaces:
BiFunction<io.vertx.core.MultiMap,HttpClientModule,Val<jsonvalues.JsObj>>
public class GetAccessTokenRequest extends Object implements BiFunction<io.vertx.core.MultiMap,HttpClientModule,Val<jsonvalues.JsObj>>
Default req to get the access token in a Client Credentials Code POST https://host:port/uri grant_type=client_credentials Accept: application/json Authorization: Base64(ClientId:ClientSecret) Content-Type: application/x-www-form-urlencoded the default uri is /token the default host and port are the ones specified in the HttpClientModule where the requests that need the token are defined
-
-
Constructor Summary
Constructors Constructor Description GetAccessTokenRequest(String clientId, String clientSecret)
GetAccessTokenRequest(String clientId, String clientSecret, String host, int port)
GetAccessTokenRequest(String clientId, String clientSecret, String host, String uri, int port, boolean ssl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Val<jsonvalues.JsObj>
apply(io.vertx.core.MultiMap context, HttpClientModule module)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
apply
public Val<jsonvalues.JsObj> apply(io.vertx.core.MultiMap context, HttpClientModule module)
- Specified by:
apply
in interfaceBiFunction<io.vertx.core.MultiMap,HttpClientModule,Val<jsonvalues.JsObj>>
-
-