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

authorities(List<String> authorities) → UserRequestPostProcessor
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; usually request itself after changing its headers, cookies, attributes or principal.
roles(List<String> roles) → UserRequestPostProcessor
Sets the roles, written without ROLE_ (['ADMIN'] gives ROLE_ADMIN); replaces the default USER and earlier authorities.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited