Class 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
    • Constructor Detail

      • LegacyAttributes

        public 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 Detail

      • isSupportedAttribute

        protected boolean isSupportedAttribute​(String name)
        Overrides:
        isSupportedAttribute in class org.keycloak.userprofile.DefaultAttributes
      • isReadOnly

        public boolean isReadOnly​(String attributeName)
        Specified by:
        isReadOnly in interface org.keycloak.userprofile.Attributes
        Overrides:
        isReadOnly in class org.keycloak.userprofile.DefaultAttributes
      • getReadable

        public Map<String,​List<String>> getReadable()
        Specified by:
        getReadable in interface org.keycloak.userprofile.Attributes
        Overrides:
        getReadable in class org.keycloak.userprofile.DefaultAttributes
      • isIncludeAttributeIfNotProvided

        protected boolean isIncludeAttributeIfNotProvided​(org.keycloak.userprofile.AttributeMetadata metadata)
        Overrides:
        isIncludeAttributeIfNotProvided in class org.keycloak.userprofile.DefaultAttributes