public class SerializedBrokeredIdentityContext extends Object implements UpdateProfileContext
| Modifier and Type | Class and Description |
|---|---|
static class |
SerializedBrokeredIdentityContext.ContextDataEntry |
| Constructor and Description |
|---|
SerializedBrokeredIdentityContext() |
public boolean isEditUsernameAllowed()
isEditUsernameAllowed in interface UpdateProfileContextpublic String getId()
public void setId(String id)
public String getUsername()
getUsername in interface UpdateProfileContextpublic void setUsername(String username)
setUsername in interface UpdateProfileContextpublic String getModelUsername()
public void setModelUsername(String modelUsername)
public String getBrokerUsername()
public void setBrokerUsername(String modelUsername)
public String getEmail()
getEmail in interface UpdateProfileContextpublic void setEmail(String email)
setEmail in interface UpdateProfileContextpublic String getFirstName()
getFirstName in interface UpdateProfileContextpublic void setFirstName(String firstName)
setFirstName in interface UpdateProfileContextpublic String getLastName()
getLastName in interface UpdateProfileContextpublic void setLastName(String lastName)
setLastName in interface UpdateProfileContextpublic String getBrokerSessionId()
public void setBrokerSessionId(String brokerSessionId)
public String getBrokerUserId()
public void setBrokerUserId(String brokerUserId)
public String getCode()
public void setCode(String code)
public String getToken()
public void setToken(String token)
public String getIdentityProviderId()
public void setIdentityProviderId(String identityProviderId)
public Map<String,SerializedBrokeredIdentityContext.ContextDataEntry> getContextData()
public void setContextData(Map<String,SerializedBrokeredIdentityContext.ContextDataEntry> contextData)
public Map<String,List<String>> getAttributes()
getAttributes in interface UpdateProfileContextpublic void setSingleAttribute(String name, String value)
setSingleAttribute in interface UpdateProfileContextpublic void setAttribute(String key, List<String> value)
setAttribute in interface UpdateProfileContextpublic List<String> getAttribute(String key)
getAttribute in interface UpdateProfileContextpublic Stream<String> getAttributeStream(String key)
UpdateProfileContextgetAttributeStream in interface UpdateProfileContextkey - the name of the attribute.Stream of attribute values.public String getFirstAttribute(String name)
getFirstAttribute in interface UpdateProfileContextpublic BrokeredIdentityContext deserialize(KeycloakSession session, AuthenticationSessionModel authSession)
public static SerializedBrokeredIdentityContext serialize(BrokeredIdentityContext context)
public void saveToAuthenticationSession(AuthenticationSessionModel authSession, String noteKey)
public static SerializedBrokeredIdentityContext readFromAuthenticationSession(AuthenticationSessionModel authSession, String noteKey)
Copyright © 2021 JBoss by Red Hat. All rights reserved.