public class AmazonCognitoAuth extends OpenIDConnectAuth
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<AmazonCognitoAuth> |
__TYPE_ARG |
Constructor and Description |
---|
AmazonCognitoAuth(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,
HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Amazon Cognito
|
static Single<OAuth2Auth> |
discover(Vertx vertx,
OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
boolean |
equals(Object o) |
AmazonCognitoAuth |
getDelegate() |
int |
hashCode() |
static AmazonCognitoAuth |
newInstance(AmazonCognitoAuth arg) |
static Single<OAuth2Auth> |
rxDiscover(Vertx vertx,
OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
String |
toString() |
newInstance
public static final io.vertx.lang.rx.TypeArg<AmazonCognitoAuth> __TYPE_ARG
public AmazonCognitoAuth(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 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, 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 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 AmazonCognitoAuth newInstance(AmazonCognitoAuth arg)
Copyright © 2021 Eclipse. All rights reserved.