Class SerializedBrokeredIdentityContext
java.lang.Object
org.keycloak.authentication.authenticators.broker.util.SerializedBrokeredIdentityContext
- All Implemented Interfaces:
 UpdateProfileContext
- Author:
 - Marek Posolda
 
- 
Nested Class Summary
Nested Classes - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptiondeserialize(KeycloakSession session, AuthenticationSessionModel authSession) getAttribute(String key) getAttributeStream(String key) Obtains all values associated with the specified attribute name.getCode()getEmail()getFirstAttribute(String name) getId()getToken()booleanbooleanreadFromAuthenticationSession(AuthenticationSessionModel authSession, String noteKey) voidsaveToAuthenticationSession(AuthenticationSessionModel authSession, String noteKey) serialize(BrokeredIdentityContext context) voidsetAttribute(String key, List<String> value) voidsetBrokerSessionId(String brokerSessionId) voidsetBrokerUserId(String brokerUserId) voidsetBrokerUsername(String modelUsername) voidvoidvoidvoidsetFirstName(String firstName) voidvoidsetIdentityProviderId(String identityProviderId) voidsetLastName(String lastName) voidsetModelUsername(String modelUsername) voidsetSingleAttribute(String name, String value) voidvoidsetUsername(String username)  
- 
Constructor Details
- 
SerializedBrokeredIdentityContext
public SerializedBrokeredIdentityContext() 
 - 
 - 
Method Details
- 
isEditUsernameAllowed
public boolean isEditUsernameAllowed()- Specified by:
 isEditUsernameAllowedin interfaceUpdateProfileContext
 - 
getUserProfileContext
- Specified by:
 getUserProfileContextin interfaceUpdateProfileContext
 - 
getId
 - 
setId
 - 
getUsername
- Specified by:
 getUsernamein interfaceUpdateProfileContext
 - 
setUsername
- Specified by:
 setUsernamein interfaceUpdateProfileContext
 - 
isEditEmailAllowed
public boolean isEditEmailAllowed()- Specified by:
 isEditEmailAllowedin interfaceUpdateProfileContext
 - 
getModelUsername
 - 
setModelUsername
 - 
getBrokerUsername
 - 
setBrokerUsername
 - 
getEmail
- Specified by:
 getEmailin interfaceUpdateProfileContext
 - 
setEmail
- Specified by:
 setEmailin interfaceUpdateProfileContext
 - 
getFirstName
- Specified by:
 getFirstNamein interfaceUpdateProfileContext
 - 
setFirstName
- Specified by:
 setFirstNamein interfaceUpdateProfileContext
 - 
getLastName
- Specified by:
 getLastNamein interfaceUpdateProfileContext
 - 
setLastName
- Specified by:
 setLastNamein interfaceUpdateProfileContext
 - 
getBrokerSessionId
 - 
setBrokerSessionId
 - 
getBrokerUserId
 - 
setBrokerUserId
 - 
getCode
 - 
setCode
 - 
getToken
 - 
setToken
 - 
getIdentityProviderId
 - 
setIdentityProviderId
 - 
getContextData
 - 
setContextData
public void setContextData(Map<String, SerializedBrokeredIdentityContext.ContextDataEntry> contextData)  - 
getAttributes
- Specified by:
 getAttributesin interfaceUpdateProfileContext
 - 
setSingleAttribute
- Specified by:
 setSingleAttributein interfaceUpdateProfileContext
 - 
setAttribute
- Specified by:
 setAttributein interfaceUpdateProfileContext
 - 
getAttribute
- Specified by:
 getAttributein interfaceUpdateProfileContext
 - 
getAttributeStream
Description copied from interface:UpdateProfileContextObtains all values associated with the specified attribute name.- Specified by:
 getAttributeStreamin interfaceUpdateProfileContext- Parameters:
 key- the name of the attribute.- Returns:
 - a non-null 
Streamof attribute values. 
 - 
getFirstAttribute
- Specified by:
 getFirstAttributein interfaceUpdateProfileContext
 - 
deserialize
public BrokeredIdentityContext deserialize(KeycloakSession session, AuthenticationSessionModel authSession)  - 
serialize
 - 
saveToAuthenticationSession
 - 
readFromAuthenticationSession
public static SerializedBrokeredIdentityContext readFromAuthenticationSession(AuthenticationSessionModel authSession, String noteKey)  
 -