Class OidcUserInfo.Builder
java.lang.Object
org.springframework.security.oauth2.core.oidc.OidcUserInfo.Builder
- Enclosing class:
- OidcUserInfo
A builder for
OidcUserInfos.- Since:
- 5.3
-
Method Summary
Modifier and TypeMethodDescriptionUse this address in the resultingOidcUserInfo.Use this birthdate in the resultingOidcUserInfo.build()Build theOidcUserInfo.Use this claim in the resultingOidcUserInfo.Provides access to everyclaim(String, Object)declared so far with the possibility to add, replace, or remove.Use this email in the resultingOidcUserInfo.emailVerified(Boolean emailVerified) Use this verified-email indicator in the resultingOidcUserInfo.familyName(String familyName) Use this family name in the resultingOidcUserInfo.Use this gender in the resultingOidcUserInfo.Use this given name in the resultingOidcUserInfo.Use this locale in the resultingOidcUserInfo.middleName(String middleName) Use this middle name in the resultingOidcUserInfo.Use this name in the resultingOidcUserInfo.Use this nickname in the resultingOidcUserInfo.phoneNumber(String phoneNumber) Use this phone number in the resultingOidcUserInfo.phoneNumberVerified(Boolean phoneNumberVerified) Use this verified-phone-number indicator in the resultingOidcUserInfo.Use this picture in the resultingOidcUserInfo.preferredUsername(String preferredUsername) Use this preferred username in the resultingOidcUserInfo.Use this profile in the resultingOidcUserInfo.Use this subject in the resultingOidcUserInfo.Use this updated-atInstantin the resultingOidcUserInfo.Use this website in the resultingOidcUserInfo.Use this zoneinfo in the resultingOidcUserInfo.
-
Method Details
-
claim
Use this claim in the resultingOidcUserInfo.- Parameters:
name- The claim namevalue- The claim value- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
claims
Provides access to everyclaim(String, Object)declared so far with the possibility to add, replace, or remove.- Parameters:
claimsConsumer- the consumer- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
address
Use this address in the resultingOidcUserInfo.- Parameters:
address- The address to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
birthdate
Use this birthdate in the resultingOidcUserInfo.- Parameters:
birthdate- The birthdate to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
email
Use this email in the resultingOidcUserInfo.- Parameters:
email- The email to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
emailVerified
Use this verified-email indicator in the resultingOidcUserInfo.- Parameters:
emailVerified- The verified-email indicator to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
familyName
Use this family name in the resultingOidcUserInfo.- Parameters:
familyName- The family name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
gender
Use this gender in the resultingOidcUserInfo.- Parameters:
gender- The gender to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
givenName
Use this given name in the resultingOidcUserInfo.- Parameters:
givenName- The given name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
locale
Use this locale in the resultingOidcUserInfo.- Parameters:
locale- The locale to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
middleName
Use this middle name in the resultingOidcUserInfo.- Parameters:
middleName- The middle name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
name
Use this name in the resultingOidcUserInfo.- Parameters:
name- The name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
nickname
Use this nickname in the resultingOidcUserInfo.- Parameters:
nickname- The nickname to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
picture
Use this picture in the resultingOidcUserInfo.- Parameters:
picture- The picture to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
phoneNumber
Use this phone number in the resultingOidcUserInfo.- Parameters:
phoneNumber- The phone number to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
phoneNumberVerified
Use this verified-phone-number indicator in the resultingOidcUserInfo.- Parameters:
phoneNumberVerified- The verified-phone-number indicator to use- Returns:
- the
OidcUserInfo.Builderfor further configurations - Since:
- 5.8
-
preferredUsername
Use this preferred username in the resultingOidcUserInfo.- Parameters:
preferredUsername- The preferred username to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
profile
Use this profile in the resultingOidcUserInfo.- Parameters:
profile- The profile to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
subject
Use this subject in the resultingOidcUserInfo.- Parameters:
subject- The subject to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
updatedAt
Use this updated-atInstantin the resultingOidcUserInfo.- Parameters:
updatedAt- The updated-atInstantto use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
website
Use this website in the resultingOidcUserInfo.- Parameters:
website- The website to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
zoneinfo
Use this zoneinfo in the resultingOidcUserInfo.- Parameters:
zoneinfo- The zoneinfo to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
build
Build theOidcUserInfo.- Returns:
- The constructed
OidcUserInfo
-