Class UPAttributeRequired

java.lang.Object
org.keycloak.representations.userprofile.config.UPAttributeRequired
All Implemented Interfaces:
Cloneable

public class UPAttributeRequired extends Object implements Cloneable
Config of the rules when attribute is required.
Author:
Vlastimil Elias <velias@redhat.com>
  • Constructor Details

    • UPAttributeRequired

      public UPAttributeRequired()
    • UPAttributeRequired

      public UPAttributeRequired(Set<String> roles, Set<String> scopes)
  • Method Details

    • isAlways

      public boolean isAlways()
      Check if this config means that the attribute is ALWAYS required.
      Returns:
      true if the attribute is always required
    • getRoles

      public Set<String> getRoles()
    • setRoles

      public void setRoles(Set<String> roles)
    • getScopes

      public Set<String> getScopes()
    • setScopes

      public void setScopes(Set<String> scopes)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      protected UPAttributeRequired clone()
      Overrides:
      clone in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object