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 resultingOidcUserInfoUse this birthdate in the resultingOidcUserInfobuild()Build theOidcUserInfoUse this claim in the resultingOidcUserInfoProvides access to everyclaim(String, Object)declared so far with the possibility to add, replace, or remove.Use this email in the resultingOidcUserInfoemailVerified(Boolean emailVerified) Use this verified-email indicator in the resultingOidcUserInfofamilyName(String familyName) Use this family name in the resultingOidcUserInfoUse this gender in the resultingOidcUserInfoUse this given name in the resultingOidcUserInfoUse this locale in the resultingOidcUserInfomiddleName(String middleName) Use this middle name in the resultingOidcUserInfoUse this name in the resultingOidcUserInfoUse this nickname in the resultingOidcUserInfophoneNumber(String phoneNumber) Use this phone number in the resultingOidcUserInfophoneNumberVerified(Boolean phoneNumberVerified) Use this verified-phone-number indicator in the resultingOidcUserInfoUse this picture in the resultingOidcUserInfopreferredUsername(String preferredUsername) Use this preferred username in the resultingOidcUserInfoUse this profile in the resultingOidcUserInfoUse this subject in the resultingOidcUserInfoUse this updated-atInstantin the resultingOidcUserInfoUse this website in the resultingOidcUserInfoUse 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
-