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

  1. Object
  2. SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor

ImplementsRequestPostProcessor

Methods

public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor subject(String subject)The token’s sub claim, which is the request’s user name.
public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor claim(String name, Object value)One claim of the token; null removes it.
public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor scopes(String... scopes)The token’s scope claim.
public SecurityMockMvcRequestPostProcessors.JwtRequestPostProcessor authorities(String... authorities)What the request is granted, as written, whatever the claims say.
public MockRequestBuilder postProcessRequest(MockRequestBuilder request)The request to send: request changed, usually.

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.