
com.tngtech.keycloakmock.impl.session.ResponseMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mock Show documentation
Show all versions of mock Show documentation
Base module of keycloak-mock
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