Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public static final class SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor
- Object
- SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor
ImplementsRequestPostProcessor
SecurityMockMvcRequestPostProcessors.jwt(), to refine.Methods
Inherited methods
Method details
subject
public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor subject(String subject)The token’s
sub claim, which is the request’s user name.claim
public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor claim(String name, Object value)One claim of the token; null removes it.
scopes
public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor scopes(String... scopes)The token’s
scope claim. Each scope is granted as SCOPE_ and
its name, as a resource server grants it, unless authorities
says what is granted.authorities
public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor authorities(String... authorities)What the request is granted, as written, whatever the claims say.
postProcessRequest
public MockRequestBuilder postProcessRequest(MockRequestBuilder request)The request to send:
request changed, usually.