Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public class DefaultOidcUser
- Object
- DefaultOAuth2User
- DefaultOidcUser
ImplementsOAuth2User, OidcUser
An
OidcUser that holds what it is given.Constructors
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
authoritiesCollection<? extends GrantedAuthority>- Not documented.
idTokenJwt- Not documented.
claimsMap<String, Object>- the ID token’s claims and the user info’s, merged
nameAttributeKeyString- the claim that names the user;
subfor null
DefaultOidcUser
public DefaultOidcUser(String name, Collection<? extends GrantedAuthority> authorities, Jwt idToken, Map<String, Object> claims)A user called
name; see
DefaultOAuth2User.DefaultOAuth2User(String, Collection, Map).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.