@Service public class ResponseUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCESS_TOKEN_COOKIE_NAME |
static String |
CONSENT_COOKIE_NAME |
static String |
UNKNOWN_CREDENTIALS |
| Constructor and Description |
|---|
ResponseUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
consentCookie(String cookieString) |
<T extends OnlineBankingResponse> |
couldNotProcessRequest(T authResp,
String message,
org.springframework.http.HttpStatus status,
javax.servlet.http.HttpServletResponse httpResp) |
<T extends OnlineBankingResponse> |
error(T authResp,
org.springframework.http.HttpStatus status,
String message,
javax.servlet.http.HttpServletResponse response) |
<T extends OnlineBankingResponse> |
redirect(String locationURI,
javax.servlet.http.HttpServletResponse httpResp) |
void |
removeCookies(javax.servlet.http.HttpServletResponse response) |
void |
setCookies(javax.servlet.http.HttpServletResponse response,
ConsentReference consentReference,
String accessTokenString,
de.adorsys.ledgers.middleware.api.domain.um.AccessTokenTO accessTokenTO) |
<T extends OnlineBankingResponse> |
unknownCredentials(T resp,
javax.servlet.http.HttpServletResponse httpResp) |
public static final String CONSENT_COOKIE_NAME
public static final String ACCESS_TOKEN_COOKIE_NAME
public static final String UNKNOWN_CREDENTIALS
public void setCookies(javax.servlet.http.HttpServletResponse response,
ConsentReference consentReference,
String accessTokenString,
de.adorsys.ledgers.middleware.api.domain.um.AccessTokenTO accessTokenTO)
public void removeCookies(javax.servlet.http.HttpServletResponse response)
public <T extends OnlineBankingResponse> org.springframework.http.ResponseEntity<T> unknownCredentials(T resp, javax.servlet.http.HttpServletResponse httpResp)
public <T extends OnlineBankingResponse> org.springframework.http.ResponseEntity<T> couldNotProcessRequest(T authResp, String message, org.springframework.http.HttpStatus status, javax.servlet.http.HttpServletResponse httpResp)
public <T extends OnlineBankingResponse> org.springframework.http.ResponseEntity<T> redirect(String locationURI, javax.servlet.http.HttpServletResponse httpResp)
public <T extends OnlineBankingResponse> org.springframework.http.ResponseEntity<T> error(T authResp, org.springframework.http.HttpStatus status, String message, javax.servlet.http.HttpServletResponse response)
Copyright © 2020. All rights reserved.