public class AmazonCognitoAuth extends OpenIDConnectAuth
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<AmazonCognitoAuth> |
__TYPE_ARG |
Constructor and Description |
---|
AmazonCognitoAuth(io.vertx.ext.auth.oauth2.providers.AmazonCognitoAuth delegate) |
AmazonCognitoAuth(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static OAuth2Auth |
create(Vertx vertx,
String region,
String clientId,
String clientSecret,
String guid)
Create a OAuth2Auth provider for Amazon Cognito
|
static OAuth2Auth |
create(Vertx vertx,
String region,
String clientId,
String clientSecret,
String userPoolId,
io.vertx.core.http.HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Amazon Cognito
|
static void |
discover(Vertx vertx,
io.vertx.ext.auth.oauth2.OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
static void |
discover(Vertx vertx,
io.vertx.ext.auth.oauth2.OAuth2Options config,
io.vertx.core.Handler<io.vertx.core.AsyncResult<OAuth2Auth>> handler)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
boolean |
equals(Object o) |
io.vertx.ext.auth.oauth2.providers.AmazonCognitoAuth |
getDelegate() |
int |
hashCode() |
static AmazonCognitoAuth |
newInstance(io.vertx.ext.auth.oauth2.providers.AmazonCognitoAuth arg) |
static rx.Single<OAuth2Auth> |
rxDiscover(Vertx vertx,
io.vertx.ext.auth.oauth2.OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
String |
toString() |
newInstance
public static final TypeArg<AmazonCognitoAuth> __TYPE_ARG
public AmazonCognitoAuth(io.vertx.ext.auth.oauth2.providers.AmazonCognitoAuth delegate)
public AmazonCognitoAuth(Object delegate)
public String toString()
toString
in class OpenIDConnectAuth
public boolean equals(Object o)
equals
in class OpenIDConnectAuth
public int hashCode()
hashCode
in class OpenIDConnectAuth
public io.vertx.ext.auth.oauth2.providers.AmazonCognitoAuth getDelegate()
getDelegate
in class OpenIDConnectAuth
public static OAuth2Auth create(Vertx vertx, String region, String clientId, String clientSecret, String guid)
vertx
- region
- the region to useclientId
- the client id given to you by Amazon CognitoclientSecret
- the client secret given to you by Amazon Cognitoguid
- the guid of your application given to you by Amazon Cognitopublic static OAuth2Auth create(Vertx vertx, String region, String clientId, String clientSecret, String userPoolId, io.vertx.core.http.HttpClientOptions httpClientOptions)
vertx
- region
- the region to useclientId
- the client id given to you by Amazon CognitoclientSecret
- the client secret given to you by Amazon CognitouserPoolId
- the userPoolId of your application given to you by Amazon CognitohttpClientOptions
- custom http client optionspublic static void discover(Vertx vertx, io.vertx.ext.auth.oauth2.OAuth2Options config, io.vertx.core.Handler<io.vertx.core.AsyncResult<OAuth2Auth>> handler)
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 confighandler
- the instantiated Oauth2 provider instance handlerpublic static void discover(Vertx vertx, io.vertx.ext.auth.oauth2.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 rx.Single<OAuth2Auth> rxDiscover(Vertx vertx, io.vertx.ext.auth.oauth2.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 AmazonCognitoAuth newInstance(io.vertx.ext.auth.oauth2.providers.AmazonCognitoAuth arg)
Copyright © 2021 Eclipse. All rights reserved.