public class Claim extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Claim.ClaimBuilder
Builder to keep this immutable.
|
Constructor and Description |
---|
Claim(String name)
Creates a new Claim.
|
Claim(String name,
List<Object> values,
boolean essential)
Creates a new claim with multiple requested values.
|
Claim(String name,
Object value)
Creates a new claim with single requested value.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asMap() |
String |
getLocale()
Get the locale of this claim.
|
String |
getName()
Gets the name of this claim.
|
List<Object> |
getValues()
Get the value(s) of this claim.
|
boolean |
isEssential()
Get whether the claim is essential.
|
String |
toString() |
public Claim(String name)
name
- The name of the claim.public Claim(String name, Object value)
name
- The name of the claim.value
- The requested value.public String getName()
public String getLocale()
public boolean isEssential()
Copyright © 2010-2018, ForgeRock All Rights Reserved.