org.keycloak.userprofile.config

## Class UPAttributeRequired

- java.lang.Object
- - org.keycloak.userprofile.config.UPAttributeRequired

-     public class UPAttributeRequired
      extends Object

  Config of the rules when attribute is required.
  Author:
    Vlastimil Elias

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `UPAttributeRequired()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Set<String>` | `getRoles()`
    `Set<String>` | `getScopes()`
    `boolean` | `isAlways()` Check if this config means that the attribute is ALWAYS required.
    `void` | `setRoles(Set<String> roles)`
    `void` | `setScopes(Set<String> scopes)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### UPAttributeRequired

          public UPAttributeRequired()

  - ### Method Detail

    - #### 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`

Copyright © 2021 JBoss by Red Hat. All rights reserved.