Package com.sun.identity.saml2.profile
Interface FederateCookieRedirector
-
- All Known Implementing Classes:
UtilProxyCookieRedirector
public interface FederateCookieRedirectorInterface to describe an object that can check a cookie and then perform SAML2 Redirect based on the result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanifNoCookieIsSetThenSetTheCookieThenRedirectToANewRequestAndReturnTrue(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP)Sets the cookie for the SAML2 Request and redirects the request.booleanisCookieSet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP)Establishes whether or not the SAML2 cookie is set.booleanneedSetLBCookieAndRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP)Sets the cookie if required and then redirects the SAML2 request.voidsetCookieAndRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP)Sets the cookie for the SAML2 Request and redirects the request.
-
-
-
Method Detail
-
isCookieSet
boolean isCookieSet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP)Establishes whether or not the SAML2 cookie is set.- Parameters:
request- the SAML2 requestresponse- the saml2 ResponseisIDP- whether this request was from an IDP- Returns:
- true if the cookie is set.
-
setCookieAndRedirect
void setCookieAndRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP) throws UnableToRedirectExceptionSets the cookie for the SAML2 Request and redirects the request.- Parameters:
request- the SAML2 Request objectresponse- the SAML2 Resposne objectisIDP- whether this request was from and idp- Throws:
UnableToRedirectException- if there was a problem preforming the redirect.
-
ifNoCookieIsSetThenSetTheCookieThenRedirectToANewRequestAndReturnTrue
boolean ifNoCookieIsSetThenSetTheCookieThenRedirectToANewRequestAndReturnTrue(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP)Sets the cookie for the SAML2 Request and redirects the request.- Parameters:
request- the SAML2 Request objectresponse- the SAML2 Resposne objectisIDP- whether this request was from and idp
-
needSetLBCookieAndRedirect
boolean needSetLBCookieAndRedirect(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, boolean isIDP)Sets the cookie if required and then redirects the SAML2 request. Returns a boolean to indicate whether the redirect action was taken.- Parameters:
request- the SAML2 Request objectresponse- the SAML2 Resposne objectisIDP- whether this request was from and idp- Returns:
- true if the redirect action was performed
-
-