Package org.keycloak.userprofile
Class LegacyAttributes
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,List<String>>
-
- org.keycloak.userprofile.DefaultAttributes
-
- org.keycloak.userprofile.LegacyAttributes
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,List<String>>
,org.keycloak.userprofile.Attributes
public class LegacyAttributes extends org.keycloak.userprofile.DefaultAttributes
Enables legacy support when managing attributes without the declarative provider.- Author:
- Pedro Igor
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description LegacyAttributes(org.keycloak.userprofile.UserProfileContext context, Map<String,?> attributes, org.keycloak.models.UserModel user, org.keycloak.userprofile.UserProfileMetadata profileMetadata, org.keycloak.models.KeycloakSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,List<String>>
getReadable()
protected boolean
isIncludeAttributeIfNotProvided(org.keycloak.userprofile.AttributeMetadata metadata)
boolean
isReadOnly(String attributeName)
protected boolean
isSupportedAttribute(String name)
-
Methods inherited from class org.keycloak.userprofile.DefaultAttributes
attributeSet, contains, createAttributeContext, getMetadata, getValues, isReadOnlyFromMetadata, isReadOnlyInternalAttribute, isRequired, nameSet, toMap, validate
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
isSupportedAttribute
protected boolean isSupportedAttribute(String name)
- Overrides:
isSupportedAttribute
in classorg.keycloak.userprofile.DefaultAttributes
-
isReadOnly
public boolean isReadOnly(String attributeName)
- Specified by:
isReadOnly
in interfaceorg.keycloak.userprofile.Attributes
- Overrides:
isReadOnly
in classorg.keycloak.userprofile.DefaultAttributes
-
getReadable
public Map<String,List<String>> getReadable()
- Specified by:
getReadable
in interfaceorg.keycloak.userprofile.Attributes
- Overrides:
getReadable
in classorg.keycloak.userprofile.DefaultAttributes
-
isIncludeAttributeIfNotProvided
protected boolean isIncludeAttributeIfNotProvided(org.keycloak.userprofile.AttributeMetadata metadata)
- Overrides:
isIncludeAttributeIfNotProvided
in classorg.keycloak.userprofile.DefaultAttributes
-
-