public final class KeycloakCookieBasedRedirect extends Object
Modifier and Type | Method and Description |
---|---|
static javax.servlet.http.Cookie |
createCookieFromRedirectUrl(String url)
Creates a cookie with name and the given URL as value.
|
static String |
getRedirectUrlFromCookie(javax.servlet.http.HttpServletRequest request)
Checks if a cookie with name exists, and if so, returns its value.
|
public static String getRedirectUrlFromCookie(javax.servlet.http.HttpServletRequest request)
request
- the request to retrieve the cookie from.null
.public static javax.servlet.http.Cookie createCookieFromRedirectUrl(String url)
url
- the value that the cookie should have. If null
, a cookie is created that
expires immediately and has an empty string as value.Copyright © 2021 JBoss by Red Hat. All rights reserved.