Package | Description |
---|---|
io.restassured.config | |
io.restassured.internal.csrf | |
io.restassured.internal.filter |
Modifier and Type | Method and Description |
---|---|
CsrfConfig |
CsrfConfig.and()
Syntactic sugar
|
static CsrfConfig |
CsrfConfig.csrfConfig() |
CsrfConfig |
CsrfConfig.csrfHeaderName(String csrfHeaderName)
Specify the name of the header that REST Assured will send the CSRF token if REST Assured detects that it should send the token in a header.
|
CsrfConfig |
CsrfConfig.csrfInputFieldName(String inputFieldName)
Enable Cross-site request forgery (csrf) support by including the csrf value of the input field with the specified name.
|
CsrfConfig |
CsrfConfig.csrfMetaTagName(String csrfMetaTagName)
Enable Cross-site request forgery (csrf) support by including the csrf token specified in a meta tag as a header.
|
CsrfConfig |
CsrfConfig.csrfPrioritization(CsrfConfig.CsrfPrioritization csrfPrioritization)
Defines how REST Assured should prioritize form vs header csrf tokens if both are present in the response page.
|
CsrfConfig |
CsrfConfig.csrfTokenPath(String csrfTokenPath) |
CsrfConfig |
CsrfConfig.csrfTokenPath(URI csrfTokenPath) |
CsrfConfig |
CsrfConfig.csrfTokenPath(URL csrfTokenPath) |
CsrfConfig |
RestAssuredConfig.getCsrfConfig() |
CsrfConfig |
CsrfConfig.loggingEnabled()
Enables logging with log level
LogDetail.ALL of the request made to csrfTokenPath(String) . |
CsrfConfig |
CsrfConfig.loggingEnabled(LogConfig logConfig)
Enables logging with log level
LogDetail.ALL of the request made to csrfTokenPath(String)
using the specified LogConfig . |
CsrfConfig |
CsrfConfig.loggingEnabled(LogDetail logDetail)
Enables logging with the supplied logDetail of the request made to
csrfTokenPath(String) . |
CsrfConfig |
CsrfConfig.loggingEnabled(LogDetail logDetail,
LogConfig logConfig)
Enables logging with the supplied log detail of the request made to
csrfTokenPath(String) using the
specified LogConfig . |
CsrfConfig |
CsrfConfig.with()
Syntactic sugar.
|
Modifier and Type | Method and Description |
---|---|
RestAssuredConfig |
RestAssuredConfig.csrfConfig(CsrfConfig csrfConfig)
Set the CSRF config.
|
Constructor and Description |
---|
RestAssuredConfig(RedirectConfig redirectConfig,
HttpClientConfig httpClientConfig,
LogConfig logConfig,
EncoderConfig encoderConfig,
DecoderConfig decoderConfig,
SessionConfig sessionConfig,
ObjectMapperConfig objectMapperConfig,
ConnectionConfig connectionConfig,
JsonConfig jsonConfig,
XmlConfig xmlConfig,
SSLConfig sslConfig,
MatcherConfig matcherConfig,
HeaderConfig headerConfig,
MultiPartConfig multiPartConfig,
ParamConfig paramConfig,
OAuthConfig oAuthConfig,
FailureConfig failureConfig,
CsrfConfig csrfConfig)
Create a new RestAssuredConfiguration with the supplied
RedirectConfig , HttpClientConfig , LogConfig ,
EncoderConfig , DecoderConfig , SessionConfig , ObjectMapperConfig , ConnectionConfig ,
JsonConfig , XmlConfig , SSLConfig ,
MatcherConfig , HeaderConfig , MultiPartConfig , OAuthConfig , FailureConfig , CsrfConfig . |
Modifier and Type | Method and Description |
---|---|
static CsrfData |
CsrfTokenFinder.findInHtml(CsrfConfig csrfConfig,
Response pageThatContainsCsrfToken) |
Modifier and Type | Method and Description |
---|---|
CsrfConfig |
CsrfFilter.getCsrfConfig() |
CsrfConfig |
FormAuthFilter.getCsrfConfig() |
Modifier and Type | Method and Description |
---|---|
void |
CsrfFilter.setCsrfConfig(CsrfConfig value) |
void |
FormAuthFilter.setCsrfConfig(CsrfConfig value) |
Copyright © 2010–2023. All rights reserved.