Package org.forgerock.openidconnect
Class Claim.ClaimBuilder
java.lang.Object
org.forgerock.oauth.clients.oidc.Claim.ClaimBuilder
org.forgerock.openidconnect.Claim.ClaimBuilder
- Enclosing class:
- Claim
Builder to keep the
Claim immutable.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Return the claim this builder was building.Marks this ClaimBuilder as building an essential claim.withBooleanValue(Boolean value) Sets the boolean value for the ClaimBuilder.withBooleanValues(List<Boolean> values) Sets the boolean values for the ClaimBuilder.withJsonValue(JsonValue value) Sets the value for the ClaimBuilder.withJsonValues(List<JsonValue> values) Sets the values for the ClaimBuilder.withLocale(Locale locale) Sets the locale of the ClaimBuilder.withNumericalValue(Number value) Sets the number value for the ClaimBuilder.withNumericalValues(List<Number> values) Sets the number values for the ClaimBuilder.withStringValue(String value) Sets the string value for the ClaimBuilder.withStringValues(List<String> values) Sets the string values for the ClaimBuilder.
-
Constructor Details
-
ClaimBuilder
-
-
Method Details
-
withLocale
Description copied from class:Claim.ClaimBuilderSets the locale of the ClaimBuilder.- Overrides:
withLocalein classClaim.ClaimBuilder- Parameters:
locale- Claim's locale- Returns:
- This builder
-
withStringValues
Description copied from class:Claim.ClaimBuilderSets the string values for the ClaimBuilder.- Overrides:
withStringValuesin classClaim.ClaimBuilder- Parameters:
values- Values to set, must not be null or empty- Returns:
- This builder
-
withNumericalValues
Description copied from class:Claim.ClaimBuilderSets the number values for the ClaimBuilder.- Overrides:
withNumericalValuesin classClaim.ClaimBuilder- Parameters:
values- Values to set, must not be null or empty- Returns:
- This builder
-
withBooleanValues
Description copied from class:Claim.ClaimBuilderSets the boolean values for the ClaimBuilder.- Overrides:
withBooleanValuesin classClaim.ClaimBuilder- Parameters:
values- Values to set, must not be null or empty- Returns:
- This builder
-
isEssential
Description copied from class:Claim.ClaimBuilderMarks this ClaimBuilder as building an essential claim.- Overrides:
isEssentialin classClaim.ClaimBuilder- Returns:
- This builder
-
withJsonValue
Description copied from class:Claim.ClaimBuilderSets the value for the ClaimBuilder.- Overrides:
withJsonValuein classClaim.ClaimBuilder- Parameters:
value- The JsonValue to set, must not be null- Returns:
- The builder
-
withJsonValues
Description copied from class:Claim.ClaimBuilderSets the values for the ClaimBuilder.- Overrides:
withJsonValuesin classClaim.ClaimBuilder- Parameters:
values- The JsonValue to set, must not be null- Returns:
- The builder
-
withStringValue
Description copied from class:Claim.ClaimBuilderSets the string value for the ClaimBuilder.- Overrides:
withStringValuein classClaim.ClaimBuilder- Parameters:
value- Value to set, must not be null- Returns:
- This builder
-
withNumericalValue
Description copied from class:Claim.ClaimBuilderSets the number value for the ClaimBuilder.- Overrides:
withNumericalValuein classClaim.ClaimBuilder- Parameters:
value- Value to set, must not be null- Returns:
- This builder
-
withBooleanValue
Description copied from class:Claim.ClaimBuilderSets the boolean value for the ClaimBuilder.- Overrides:
withBooleanValuein classClaim.ClaimBuilder- Parameters:
value- Value to set, must not be null- Returns:
- This builder
-
build
Description copied from class:Claim.ClaimBuilderReturn the claim this builder was building.- Overrides:
buildin classClaim.ClaimBuilder- Returns:
- A claim with the values set in this Builder
-