public class KeycloakAuth extends OpenIDConnectAuth
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<KeycloakAuth> |
__TYPE_ARG |
Constructor and Description |
---|
KeycloakAuth(KeycloakAuth delegate) |
KeycloakAuth(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static OAuth2Auth |
create(Vertx vertx,
JsonObject config)
Create a OAuth2Auth provider for Keycloak
|
static OAuth2Auth |
create(Vertx vertx,
JsonObject config,
HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Keycloak
|
static OAuth2Auth |
create(Vertx vertx,
OAuth2FlowType flow,
JsonObject config)
Create a OAuth2Auth provider for Keycloak
|
static OAuth2Auth |
create(Vertx vertx,
OAuth2FlowType flow,
JsonObject config,
HttpClientOptions httpClientOptions)
Create a OAuth2Auth provider for Keycloak
|
static void |
discover(Vertx vertx,
OAuth2Options config)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
static void |
discover(Vertx vertx,
OAuth2Options config,
Handler<AsyncResult<OAuth2Auth>> handler)
Create a OAuth2Auth provider for OpenID Connect Discovery.
|
boolean |
equals(Object o) |
KeycloakAuth |
getDelegate() |
int |
hashCode() |
static KeycloakAuth |
newInstance(KeycloakAuth 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<KeycloakAuth> __TYPE_ARG
public KeycloakAuth(KeycloakAuth delegate)
public KeycloakAuth(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 KeycloakAuth getDelegate()
getDelegate
in class OpenIDConnectAuth
public static OAuth2Auth create(Vertx vertx, JsonObject config)
vertx
- config
- the json config file exported from Keycloak admin consolepublic static OAuth2Auth create(Vertx vertx, OAuth2FlowType flow, JsonObject config)
vertx
- flow
- the oauth2 flow to useconfig
- the json config file exported from Keycloak admin consolepublic static OAuth2Auth create(Vertx vertx, JsonObject config, HttpClientOptions httpClientOptions)
vertx
- config
- the json config file exported from Keycloak admin consolehttpClientOptions
- custom http client optionspublic static OAuth2Auth create(Vertx vertx, OAuth2FlowType flow, JsonObject config, HttpClientOptions httpClientOptions)
vertx
- flow
- the oauth2 flow to useconfig
- the json config file exported from Keycloak admin consolehttpClientOptions
- custom http client optionspublic static void discover(Vertx vertx, OAuth2Options config, Handler<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, 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 KeycloakAuth newInstance(KeycloakAuth arg)
Copyright © 2022 Eclipse. All rights reserved.