Package com.oracle.bmc.apigateway.model
Class JsonWebTokenClaim.Builder
- java.lang.Object
-
- com.oracle.bmc.apigateway.model.JsonWebTokenClaim.Builder
-
- Enclosing class:
- JsonWebTokenClaim
public static class JsonWebTokenClaim.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonWebTokenClaim
build()
JsonWebTokenClaim.Builder
copy(JsonWebTokenClaim model)
JsonWebTokenClaim.Builder
isRequired(Boolean isRequired)
Whether the claim is required to be present in the JWT or not.JsonWebTokenClaim.Builder
key(String key)
Name of the claim.JsonWebTokenClaim.Builder
values(List<String> values)
The list of acceptable values for a given claim.
-
-
-
Method Detail
-
key
public JsonWebTokenClaim.Builder key(String key)
Name of the claim.- Parameters:
key
- the value to set- Returns:
- this builder
-
values
public JsonWebTokenClaim.Builder values(List<String> values)
The list of acceptable values for a given claim.If this value is “null” or empty and “isRequired” set to “true”, then the presence of this claim in the JWT is validated.
- Parameters:
values
- the value to set- Returns:
- this builder
-
isRequired
public JsonWebTokenClaim.Builder isRequired(Boolean isRequired)
Whether the claim is required to be present in the JWT or not.If set to “false”, the claim values will be matched only if the claim is present in the JWT.
- Parameters:
isRequired
- the value to set- Returns:
- this builder
-
build
public JsonWebTokenClaim build()
-
copy
public JsonWebTokenClaim.Builder copy(JsonWebTokenClaim model)
-
-