UserRequestPostProcessor class final
The request post-processor user returns; its methods change the user's roles, authorities or password.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
Sets the authorities by their full names (
SCOPE_read), replacing the roles. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
password(
String password) → UserRequestPostProcessor - Sets the user's password, which only matters to code that reads it; no login runs.
-
postProcessRequest(
MockServerHttpRequest request) → MockServerHttpRequest -
Returns the request to perform instead of
request; usuallyrequestitself after changing its headers, cookies, attributes or principal. -
roles(
List< String> roles) → UserRequestPostProcessor -
Sets the roles, written without
ROLE_(['ADMIN']givesROLE_ADMIN); replaces the defaultUSERand earlier authorities. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited