Class UserUpdateProfileContext
java.lang.Object
org.keycloak.authentication.requiredactions.util.UserUpdateProfileContext
- All Implemented Interfaces:
UpdateProfileContext
- Author:
- Marek Posolda
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeStream
(String key) 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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.authentication.requiredactions.util.UpdateProfileContext
getAttribute
-
Constructor Details
-
UserUpdateProfileContext
-
-
Method Details
-
isEditUsernameAllowed
public boolean isEditUsernameAllowed()- Specified by:
isEditUsernameAllowed
in interfaceUpdateProfileContext
-
getUserProfileContext
- Specified by:
getUserProfileContext
in interfaceUpdateProfileContext
-
getUsername
- Specified by:
getUsername
in interfaceUpdateProfileContext
-
setUsername
- Specified by:
setUsername
in interfaceUpdateProfileContext
-
isEditEmailAllowed
public boolean isEditEmailAllowed()- Specified by:
isEditEmailAllowed
in interfaceUpdateProfileContext
-
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
-
getAttributes
- Specified by:
getAttributes
in interfaceUpdateProfileContext
-
setSingleAttribute
- Specified by:
setSingleAttribute
in interfaceUpdateProfileContext
-
setAttribute
- Specified by:
setAttribute
in interfaceUpdateProfileContext
-
getFirstAttribute
- Specified by:
getFirstAttribute
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.
-