org.keycloak.authorization.attribute

## Class Attributes.Entry

- java.lang.Object
- - org.keycloak.authorization.attribute.Attributes.Entry

- Enclosing interface:
    Attributes

      public static class Attributes.Entry
      extends Object

  Holds an attribute and its values, providing useful methods for obtaining and formatting values. Specially useful for writing rule-based policies.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Entry(String name, Collection<String> values)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Date` | `asDate(int idx, String pattern)`
    `double` | `asDouble(int idx)`
    `InetAddress` | `asInetAddress(int idx)`
    `int` | `asInt(int idx)`
    `long` | `asLong(int idx)`
    `String` | `asString(int idx)`
    `boolean` | `isEmpty()`
    `int` | `size()`

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

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

- - ### Constructor Detail

    - #### Entry

          public Entry(String name,
                       Collection<String> values)

  - ### Method Detail

    - #### size

          public int size()

    - #### isEmpty

          public boolean isEmpty()

    - #### asString

          public String asString(int idx)

    - #### asInt

          public int asInt(int idx)

    - #### asDate

          public Date asDate(int idx,
                             String pattern)

    - #### asInetAddress

          public InetAddress asInetAddress(int idx)

    - #### asLong

          public long asLong(int idx)

    - #### asDouble

          public double asDouble(int idx)

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