public class DefaultCsrfTokenRetriever extends Object implements CsrfTokenRetriever
| Modifier and Type | Field and Description |
|---|---|
static String |
X_CSRF_TOKEN_HEADER_KEY
The HTTP header name for the loading the CSRF token.
|
DISABLED_CSRF_TOKEN_RETRIEVER| Constructor and Description |
|---|
DefaultCsrfTokenRetriever() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
int |
hashCode() |
CsrfToken |
retrieveCsrfToken(org.apache.http.client.HttpClient httpClient,
String servicePath)
Retrieves an CSRF Token from a remote system by issuing an CSRF token request.
|
CsrfToken |
retrieveCsrfToken(org.apache.http.client.HttpClient httpClient,
String servicePath,
Map<String,String> headers)
Retrieves an CSRF Token from a remote system by issuing an CSRF token request.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisEnabledpublic static final String X_CSRF_TOKEN_HEADER_KEY
@Nonnull public CsrfToken retrieveCsrfToken(@Nonnull org.apache.http.client.HttpClient httpClient, @Nonnull String servicePath)
CsrfTokenRetrieverretrieveCsrfToken in interface CsrfTokenRetrieverhttpClient - The HttpClient to be used to issue the CSRF token request.servicePath - The service path (which would be appended to the destination URI) to be used to issue the CSRF token
request.CsrfToken.@Nonnull public CsrfToken retrieveCsrfToken(@Nonnull org.apache.http.client.HttpClient httpClient, @Nonnull String servicePath, @Nonnull Map<String,String> headers)
CsrfTokenRetrieverretrieveCsrfToken in interface CsrfTokenRetrieverhttpClient - The HttpClient to be used to issue the CSRF token request.servicePath - The service path (which would be appended to the destination URI) to be used to issue the CSRF token
request.headers - Additional headers to use for the CSRF token request.CsrfToken.Copyright © 2021 SAP SE. All rights reserved.