Class OidcUserInfo.Builder
- java.lang.Object
-
- org.springframework.security.oauth2.core.oidc.OidcUserInfo.Builder
-
- Enclosing class:
- OidcUserInfo
public static final class OidcUserInfo.Builder extends java.lang.ObjectA builder forOidcUserInfos- Since:
- 5.3
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OidcUserInfo.Builderaddress(java.lang.String address)Use this address in the resultingOidcUserInfoOidcUserInfo.Builderbirthdate(java.lang.String birthdate)Use this birthdate in the resultingOidcUserInfoOidcUserInfobuild()Build theOidcUserInfoOidcUserInfo.Builderclaim(java.lang.String name, java.lang.Object value)Use this claim in the resultingOidcUserInfoOidcUserInfo.Builderclaims(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> claimsConsumer)Provides access to everyclaim(String, Object)declared so far with the possibility to add, replace, or remove.OidcUserInfo.Builderemail(java.lang.String email)Use this email in the resultingOidcUserInfoOidcUserInfo.BuilderemailVerified(java.lang.Boolean emailVerified)Use this verified-email indicator in the resultingOidcUserInfoOidcUserInfo.BuilderfamilyName(java.lang.String familyName)Use this family name in the resultingOidcUserInfoOidcUserInfo.Buildergender(java.lang.String gender)Use this gender in the resultingOidcUserInfoOidcUserInfo.BuildergivenName(java.lang.String givenName)Use this given name in the resultingOidcUserInfoOidcUserInfo.Builderlocale(java.lang.String locale)Use this locale in the resultingOidcUserInfoOidcUserInfo.BuildermiddleName(java.lang.String middleName)Use this middle name in the resultingOidcUserInfoOidcUserInfo.Buildername(java.lang.String name)Use this name in the resultingOidcUserInfoOidcUserInfo.Buildernickname(java.lang.String nickname)Use this nickname in the resultingOidcUserInfoOidcUserInfo.BuilderphoneNumber(java.lang.String phoneNumber)Use this phone number in the resultingOidcUserInfoOidcUserInfo.BuilderphoneNumberVerified(java.lang.String phoneNumberVerified)Use this verified-phone-number indicator in the resultingOidcUserInfoOidcUserInfo.Builderpicture(java.lang.String picture)Use this picture in the resultingOidcUserInfoOidcUserInfo.BuilderpreferredUsername(java.lang.String preferredUsername)Use this preferred username in the resultingOidcUserInfoOidcUserInfo.Builderprofile(java.lang.String profile)Use this profile in the resultingOidcUserInfoOidcUserInfo.Buildersubject(java.lang.String subject)Use this subject in the resultingOidcUserInfoOidcUserInfo.BuilderupdatedAt(java.lang.String updatedAt)Use this updated-atInstantin the resultingOidcUserInfoOidcUserInfo.Builderwebsite(java.lang.String website)Use this website in the resultingOidcUserInfoOidcUserInfo.Builderzoneinfo(java.lang.String zoneinfo)Use this zoneinfo in the resultingOidcUserInfo
-
-
-
Method Detail
-
claim
public OidcUserInfo.Builder claim(java.lang.String name, java.lang.Object value)
Use this claim in the resultingOidcUserInfo- Parameters:
name- The claim namevalue- The claim value- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
claims
public OidcUserInfo.Builder claims(java.util.function.Consumer<java.util.Map<java.lang.String,java.lang.Object>> claimsConsumer)
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
public OidcUserInfo.Builder address(java.lang.String address)
Use this address in the resultingOidcUserInfo- Parameters:
address- The address to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
birthdate
public OidcUserInfo.Builder birthdate(java.lang.String birthdate)
Use this birthdate in the resultingOidcUserInfo- Parameters:
birthdate- The birthdate to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
email
public OidcUserInfo.Builder email(java.lang.String email)
Use this email in the resultingOidcUserInfo- Parameters:
email- The email to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
emailVerified
public OidcUserInfo.Builder emailVerified(java.lang.Boolean emailVerified)
Use this verified-email indicator in the resultingOidcUserInfo- Parameters:
emailVerified- The verified-email indicator to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
familyName
public OidcUserInfo.Builder familyName(java.lang.String familyName)
Use this family name in the resultingOidcUserInfo- Parameters:
familyName- The family name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
gender
public OidcUserInfo.Builder gender(java.lang.String gender)
Use this gender in the resultingOidcUserInfo- Parameters:
gender- The gender to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
givenName
public OidcUserInfo.Builder givenName(java.lang.String givenName)
Use this given name in the resultingOidcUserInfo- Parameters:
givenName- The given name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
locale
public OidcUserInfo.Builder locale(java.lang.String locale)
Use this locale in the resultingOidcUserInfo- Parameters:
locale- The locale to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
middleName
public OidcUserInfo.Builder middleName(java.lang.String middleName)
Use this middle name in the resultingOidcUserInfo- Parameters:
middleName- The middle name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
name
public OidcUserInfo.Builder name(java.lang.String name)
Use this name in the resultingOidcUserInfo- Parameters:
name- The name to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
nickname
public OidcUserInfo.Builder nickname(java.lang.String nickname)
Use this nickname in the resultingOidcUserInfo- Parameters:
nickname- The nickname to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
picture
public OidcUserInfo.Builder picture(java.lang.String picture)
Use this picture in the resultingOidcUserInfo- Parameters:
picture- The picture to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
phoneNumber
public OidcUserInfo.Builder phoneNumber(java.lang.String phoneNumber)
Use this phone number in the resultingOidcUserInfo- Parameters:
phoneNumber- The phone number to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
phoneNumberVerified
public OidcUserInfo.Builder phoneNumberVerified(java.lang.String 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
-
preferredUsername
public OidcUserInfo.Builder preferredUsername(java.lang.String preferredUsername)
Use this preferred username in the resultingOidcUserInfo- Parameters:
preferredUsername- The preferred username to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
profile
public OidcUserInfo.Builder profile(java.lang.String profile)
Use this profile in the resultingOidcUserInfo- Parameters:
profile- The profile to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
subject
public OidcUserInfo.Builder subject(java.lang.String subject)
Use this subject in the resultingOidcUserInfo- Parameters:
subject- The subject to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
updatedAt
public OidcUserInfo.Builder updatedAt(java.lang.String updatedAt)
Use this updated-atInstantin the resultingOidcUserInfo- Parameters:
updatedAt- The updated-atInstantto use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
website
public OidcUserInfo.Builder website(java.lang.String website)
Use this website in the resultingOidcUserInfo- Parameters:
website- The website to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
zoneinfo
public OidcUserInfo.Builder zoneinfo(java.lang.String zoneinfo)
Use this zoneinfo in the resultingOidcUserInfo- Parameters:
zoneinfo- The zoneinfo to use- Returns:
- the
OidcUserInfo.Builderfor further configurations
-
build
public OidcUserInfo build()
Build theOidcUserInfo- Returns:
- The constructed
OidcUserInfo
-
-