Interface UpdateProfileContext
- All Known Implementing Classes:
SerializedBrokeredIdentityContext
,UserUpdateProfileContext
public interface UpdateProfileContext
Abstraction, which allows to display updateProfile page in various contexts (Required action of already existing user, or first identity provider
login when user doesn't yet exists in Keycloak DB)
- Author:
- Marek Posolda
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String key) Deprecated.getAttributeStream
(String name) Obtains all values associated with the specified attribute name.getEmail()
getFirstAttribute
(String name) boolean
boolean
void
setAttribute
(String key, List<String> value) void
void
setFirstName
(String firstName) void
setLastName
(String lastName) void
setSingleAttribute
(String name, String value) void
setUsername
(String username)
-
Method Details
-
getUserProfileContext
UserProfileContext getUserProfileContext() -
isEditUsernameAllowed
boolean isEditUsernameAllowed() -
getUsername
String getUsername() -
setUsername
-
isEditEmailAllowed
boolean isEditEmailAllowed() -
getEmail
String getEmail() -
setEmail
-
getFirstName
String getFirstName() -
setFirstName
-
getLastName
String getLastName() -
setLastName
-
getAttributes
-
setSingleAttribute
-
setAttribute
-
getFirstAttribute
-
getAttribute
Deprecated.UsegetAttributeStream
instead. -
getAttributeStream
Obtains all values associated with the specified attribute name.- Parameters:
name
- the name of the attribute.- Returns:
- a non-null
Stream
of attribute values.
-
getAttributeStream
instead.