Class SerializedBrokeredIdentityContext
java.lang.Object
org.keycloak.authentication.authenticators.broker.util.SerializedBrokeredIdentityContext
- All Implemented Interfaces:
UpdateProfileContext
- Author:
- Marek Posolda
-
Nested Class Summary
-
Constructor Summary
-
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()
boolean
boolean
readFromAuthenticationSession
(AuthenticationSessionModel authSession, String noteKey) void
saveToAuthenticationSession
(AuthenticationSessionModel authSession, String noteKey) serialize
(BrokeredIdentityContext context) void
setAttribute
(String key, List<String> value) void
setBrokerSessionId
(String brokerSessionId) void
setBrokerUserId
(String brokerUserId) void
setBrokerUsername
(String modelUsername) void
void
void
void
setFirstName
(String firstName) void
void
setIdentityProviderId
(String identityProviderId) void
setLastName
(String lastName) void
setModelUsername
(String modelUsername) void
setSingleAttribute
(String name, String value) void
void
setUsername
(String username)
-
Constructor Details
-
SerializedBrokeredIdentityContext
public SerializedBrokeredIdentityContext()
-
-
Method Details
-
isEditUsernameAllowed
public boolean isEditUsernameAllowed()- Specified by:
isEditUsernameAllowed
in interfaceUpdateProfileContext
-
getUserProfileContext
- Specified by:
getUserProfileContext
in interfaceUpdateProfileContext
-
getId
-
setId
-
getUsername
- Specified by:
getUsername
in interfaceUpdateProfileContext
-
setUsername
- Specified by:
setUsername
in interfaceUpdateProfileContext
-
isEditEmailAllowed
public boolean isEditEmailAllowed()- Specified by:
isEditEmailAllowed
in interfaceUpdateProfileContext
-
getModelUsername
-
setModelUsername
-
getBrokerUsername
-
setBrokerUsername
-
getEmail
- Specified by:
getEmail
in interfaceUpdateProfileContext
-
setEmail
- Specified by:
setEmail
in interfaceUpdateProfileContext
-
getFirstName
- Specified by:
getFirstName
in interfaceUpdateProfileContext
-
setFirstName
- Specified by:
setFirstName
in interfaceUpdateProfileContext
-
getLastName
- Specified by:
getLastName
in interfaceUpdateProfileContext
-
setLastName
- Specified by:
setLastName
in interfaceUpdateProfileContext
-
getBrokerSessionId
-
setBrokerSessionId
-
getBrokerUserId
-
setBrokerUserId
-
getCode
-
setCode
-
getToken
-
setToken
-
getIdentityProviderId
-
setIdentityProviderId
-
getContextData
-
setContextData
public void setContextData(Map<String, SerializedBrokeredIdentityContext.ContextDataEntry> contextData) -
getAttributes
- Specified by:
getAttributes
in interfaceUpdateProfileContext
-
setSingleAttribute
- Specified by:
setSingleAttribute
in interfaceUpdateProfileContext
-
setAttribute
- Specified by:
setAttribute
in interfaceUpdateProfileContext
-
getAttribute
- Specified by:
getAttribute
in interfaceUpdateProfileContext
-
getAttributeStream
Description copied from interface:UpdateProfileContext
Obtains all values associated with the specified attribute name.- Specified by:
getAttributeStream
in interfaceUpdateProfileContext
- Parameters:
key
- the name of the attribute.- Returns:
- a non-null
Stream
of attribute values.
-
getFirstAttribute
- Specified by:
getFirstAttribute
in interfaceUpdateProfileContext
-
deserialize
public BrokeredIdentityContext deserialize(KeycloakSession session, AuthenticationSessionModel authSession) -
serialize
-
saveToAuthenticationSession
-
readFromAuthenticationSession
public static SerializedBrokeredIdentityContext readFromAuthenticationSession(AuthenticationSessionModel authSession, String noteKey)
-