Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public class DefaultOidcUser

  1. Object
  2. DefaultOAuth2User
  3. DefaultOidcUser

ImplementsOAuth2User, OidcUser

An OidcUser that holds what it is given.

Constructors

public DefaultOidcUser(Collection<? extends GrantedAuthority> authorities, Jwt idToken, Map<String, Object> claims, String nameAttributeKey)
public DefaultOidcUser(String name, Collection<? extends GrantedAuthority> authorities, Jwt idToken, Map<String, Object> claims)A user called name; see DefaultOAuth2User.DefaultOAuth2User(String, Collection, Map).

Methods

public Jwt getIdToken()The verified ID token.
public Map<String, Object> getClaims()The claims of the ID token, with what the provider’s user info added.
public String getSubject()The sub claim: who the user is at the provider, for good.
public String getEmail()The email claim, or null.
public boolean isEmailVerified()Whether the provider says it has verified getEmail.

Inherited methods

Constructor details

DefaultOidcUser

public DefaultOidcUser(Collection<? extends GrantedAuthority> authorities, Jwt idToken, Map<String, Object> claims, String nameAttributeKey)

Parameters

authorities Collection<? extends GrantedAuthority>
Not documented.
idToken Jwt
Not documented.
claims Map<String, Object>
the ID token’s claims and the user info’s, merged
nameAttributeKey String
the claim that names the user; sub for null

DefaultOidcUser

public DefaultOidcUser(String name, Collection<? extends GrantedAuthority> authorities, Jwt idToken, Map<String, Object> claims)

Method details

getIdToken

public Jwt getIdToken()
The verified ID token.

getClaims

public Map<String, Object> getClaims()
The claims of the ID token, with what the provider’s user info added.

getSubject

public String getSubject()
The sub claim: who the user is at the provider, for good.

getEmail

public String getEmail()
The email claim, or null.

isEmailVerified

public boolean isEmailVerified()
Whether the provider says it has verified getEmail. False when it does not say.