public class GoogleAuth extends OpenIDConnectAuth
OAuth2Auth for Google.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<GoogleAuth> |
__TYPE_ARG |
| Constructor and Description |
|---|
GoogleAuth(GoogleAuth delegate) |
GoogleAuth(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
static OAuth2Auth |
create(Vertx vertx,
JsonObject serviceAccountJson)
Create a OAuth2Auth provider for Google Service Account (Server to Server)
|
static OAuth2Auth |
create(Vertx vertx,
JsonObject serviceAccountJson,
HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Google Service Account (Server to Server)
|
static OAuth2Auth |
create(Vertx vertx,
String clientId,
String clientSecret)
Create a OAuth2Auth provider for Google
|
static OAuth2Auth |
create(Vertx vertx,
String clientId,
String clientSecret,
HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Google
|
static Single<OAuth2Auth> |
discover(Vertx vertx,
OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
boolean |
equals(Object o) |
GoogleAuth |
getDelegate() |
int |
hashCode() |
static GoogleAuth |
newInstance(GoogleAuth arg) |
static Single<OAuth2Auth> |
rxDiscover(Vertx vertx,
OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
String |
toString() |
newInstancepublic static final io.vertx.lang.rx.TypeArg<GoogleAuth> __TYPE_ARG
public GoogleAuth(GoogleAuth delegate)
public GoogleAuth(Object delegate)
public String toString()
toString in class OpenIDConnectAuthpublic boolean equals(Object o)
equals in class OpenIDConnectAuthpublic int hashCode()
hashCode in class OpenIDConnectAuthpublic GoogleAuth getDelegate()
getDelegate in class OpenIDConnectAuthpublic static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret)
vertx - clientId - the client id given to you by GoogleclientSecret - the client secret given to you by Googlepublic static OAuth2Auth create(Vertx vertx, String clientId, String clientSecret, HttpClientOptions httpClientOptions)
vertx - clientId - the client id given to you by GoogleclientSecret - the client secret given to you by GooglehttpClientOptions - custom http client optionspublic static Single<OAuth2Auth> discover(Vertx vertx, OAuth2Options config)
If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded into the OAuth provider so tokens can be decoded.
vertx - the vertx instanceconfig - the initial configpublic static Single<OAuth2Auth> rxDiscover(Vertx vertx, OAuth2Options config)
If the discovered config includes a json web key url, it will be also fetched and the JWKs will be loaded into the OAuth provider so tokens can be decoded.
vertx - the vertx instanceconfig - the initial configpublic static OAuth2Auth create(Vertx vertx, JsonObject serviceAccountJson)
vertx - serviceAccountJson - the configuration json file from your Google API pagepublic static OAuth2Auth create(Vertx vertx, JsonObject serviceAccountJson, HttpClientOptions httpClientOptions)
vertx - serviceAccountJson - the configuration json file from your Google API pagehttpClientOptions - custom http client optionspublic static GoogleAuth newInstance(GoogleAuth arg)
Copyright © 2022 Eclipse. All rights reserved.