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 Description Entry(String name, Collection<String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
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)
-
asInetAddress
public InetAddress asInetAddress(int idx)
-
asLong
public long asLong(int idx)
-
asDouble
public double asDouble(int idx)
-
-