io.vertx.ext.auth.oauth2

## Interface KeycloakHelper

- Deprecated.
  Use the `User` principal to access this data as this class is not guaranteed to be secure as no cryptographic signatures are verified.

      @Deprecated
      public interface KeycloakHelper

  Helper class for processing Keycloak principal.
  Author:
    Eric Zhao

- - ### Method Summary

    All Methods Static Methods Default Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `static JsonObject` | `accessToken(JsonObject principal)` Deprecated. Get decoded `access_token` from the principal.
    `static String` | `acr(JsonObject principal)` Deprecated.
    `static Set<String>` | `allowedOrigins(JsonObject principal)` Deprecated.
    `static int` | `authTime(JsonObject principal)` Deprecated.
    `static String` | `email(JsonObject principal)` Deprecated.
    `static JsonObject` | `idToken(JsonObject principal)` Deprecated. Get decoded `id_token` from the principal.
    `static String` | `name(JsonObject principal)` Deprecated.
    `static String` | `nickName(JsonObject principal)` Deprecated.
    `static JsonObject` | `parseToken(String token)` Deprecated. Parse the token string with base64 decoder.
    `static String` | `preferredUsername(JsonObject principal)` Deprecated.
    `static String` | `rawAccessToken(JsonObject principal)` Deprecated. Get raw `access_token` string from the principal.
    `static String` | `rawIdToken(JsonObject principal)` Deprecated. Get raw `id_token` string from the principal.
    `static String` | `sessionState(JsonObject principal)` Deprecated.

- - ### Method Detail

    - #### rawIdToken

          static String rawIdToken(JsonObject principal)

      Deprecated.
      Get raw `id_token` string from the principal.
      Parameters:
        `principal` - user principal
      Returns:
        the raw id token string

    - #### idToken

          static JsonObject idToken(JsonObject principal)

      Deprecated.
      Get decoded `id_token` from the principal.
      Parameters:
        `principal` - user principal
      Returns:
        the id token

    - #### rawAccessToken

          static String rawAccessToken(JsonObject principal)

      Deprecated.
      Get raw `access_token` string from the principal.
      Parameters:
        `principal` - user principal
      Returns:
        the raw access token string

    - #### accessToken

          static JsonObject accessToken(JsonObject principal)

      Deprecated.
      Get decoded `access_token` from the principal.
      Parameters:
        `principal` - user principal
      Returns:
        the access token

    - #### authTime

          static int authTime(JsonObject principal)

      Deprecated.

    - #### sessionState

          static String sessionState(JsonObject principal)

      Deprecated.

    - #### acr

          static String acr(JsonObject principal)

      Deprecated.

    - #### name

          static String name(JsonObject principal)

      Deprecated.

    - #### email

          static String email(JsonObject principal)

      Deprecated.

    - #### preferredUsername

          static String preferredUsername(JsonObject principal)

      Deprecated.

    - #### nickName

          static String nickName(JsonObject principal)

      Deprecated.

    - #### allowedOrigins

          static Set<String> allowedOrigins(JsonObject principal)

      Deprecated.

    - #### parseToken

          static JsonObject parseToken(String token)

      Deprecated.
      Parse the token string with base64 decoder. This will only obtain the "payload" part of the token.
      Parameters:
        `token` - token string
      Returns:
        token payload json object

Copyright © 2021 Eclipse. All rights reserved.