All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.mutiny.ext.auth.oauth2.KeycloakHelper Maven / Gradle / Ivy

There is a newer version: 3.17.1
Show newest version
package io.vertx.mutiny.ext.auth.oauth2;

import java.util.Map;
import java.util.stream.Collectors;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
import java.util.function.Consumer;
import org.reactivestreams.Subscriber;
import org.reactivestreams.Publisher;
import io.smallrye.mutiny.vertx.TypeArg;
import io.vertx.codegen.annotations.Fluent;
import java.util.Set;
import io.vertx.core.json.JsonObject;

/**
 * Helper class for processing Keycloak principal.
 *
 * 

* NOTE: This class has been automatically generated from the {@link io.vertx.ext.auth.oauth2.KeycloakHelper original} non Mutiny-ified interface using Vert.x codegen. */ @io.smallrye.mutiny.vertx.MutinyGen(io.vertx.ext.auth.oauth2.KeycloakHelper.class) public class KeycloakHelper { public static final io.smallrye.mutiny.vertx.TypeArg __TYPE_ARG = new io.smallrye.mutiny.vertx.TypeArg<>( obj -> new KeycloakHelper((io.vertx.ext.auth.oauth2.KeycloakHelper) obj), KeycloakHelper::getDelegate ); private final io.vertx.ext.auth.oauth2.KeycloakHelper delegate; public KeycloakHelper(io.vertx.ext.auth.oauth2.KeycloakHelper delegate) { this.delegate = delegate; } public KeycloakHelper(Object delegate) { this.delegate = (io.vertx.ext.auth.oauth2.KeycloakHelper)delegate; } /** * Empty constructor used by CDI, do not use this constructor directly. **/ KeycloakHelper() { this.delegate = null; } public io.vertx.ext.auth.oauth2.KeycloakHelper getDelegate() { return delegate; } @Override public String toString() { return delegate.toString(); } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; KeycloakHelper that = (KeycloakHelper) o; return delegate.equals(that.delegate); } @Override public int hashCode() { return delegate.hashCode(); } /** * @param principal user principal * @return the raw id token string * @deprecated */ @Deprecated public static String rawIdToken(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.rawIdToken(principal); return ret; } /** * @param principal user principal * @return the id token * @deprecated */ @Deprecated public static JsonObject idToken(JsonObject principal) { JsonObject ret = io.vertx.ext.auth.oauth2.KeycloakHelper.idToken(principal); return ret; } /** * @param principal user principal * @return the raw access token string * @deprecated */ @Deprecated public static String rawAccessToken(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.rawAccessToken(principal); return ret; } /** * @param principal user principal * @return the access token * @deprecated */ @Deprecated public static JsonObject accessToken(JsonObject principal) { JsonObject ret = io.vertx.ext.auth.oauth2.KeycloakHelper.accessToken(principal); return ret; } @Deprecated public static int authTime(JsonObject principal) { int ret = io.vertx.ext.auth.oauth2.KeycloakHelper.authTime(principal); return ret; } @Deprecated public static String sessionState(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.sessionState(principal); return ret; } @Deprecated public static String acr(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.acr(principal); return ret; } @Deprecated public static String name(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.name(principal); return ret; } @Deprecated public static String email(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.email(principal); return ret; } @Deprecated public static String preferredUsername(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.preferredUsername(principal); return ret; } @Deprecated public static String nickName(JsonObject principal) { String ret = io.vertx.ext.auth.oauth2.KeycloakHelper.nickName(principal); return ret; } @Deprecated public static Set allowedOrigins(JsonObject principal) { Set ret = io.vertx.ext.auth.oauth2.KeycloakHelper.allowedOrigins(principal); return ret; } /** * @param token token string * @return token payload json object * @deprecated */ @Deprecated public static JsonObject parseToken(String token) { JsonObject ret = io.vertx.ext.auth.oauth2.KeycloakHelper.parseToken(token); return ret; } public static KeycloakHelper newInstance(io.vertx.ext.auth.oauth2.KeycloakHelper arg) { return arg != null ? new KeycloakHelper(arg) : null; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy