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
    --- | ---
    `List<String>` | `getRoles()`
    `List<String>` | `getScopes()`
    `boolean` | `isAlways()` Check if this config means that the attribute is ALWAYS required.
    `void` | `setRoles(List<String> roles)`
    `void` | `setScopes(List<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 List<String> getRoles()

    - #### setRoles

          public void setRoles(List<String> roles)

    - #### getScopes

          public List<String> getScopes()

    - #### setScopes

          public void setScopes(List<String> scopes)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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