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

com.tngtech.keycloakmock.impl.session.ResponseMode Maven / Gradle / Ivy

The newest version!
package com.tngtech.keycloakmock.impl.session;

import java.util.Locale;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * The response mode through which to return the result of an authorization call.
 *
 * @see response
 *     types
 */
public enum ResponseMode {
  FRAGMENT("#"),
  QUERY("?");

  @Nonnull private final String sign;

  ResponseMode(@Nonnull final String sign) {
    this.sign = sign;
  }

  @Nonnull
  public String getSign() {
    return sign;
  }

  @Nullable
  static ResponseMode fromValue(@Nullable final String value) {
    if (value == null || value.isEmpty()) {
      return null;
    }
    return ResponseMode.valueOf(value.toUpperCase(Locale.ROOT));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy