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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonWebTokenClaimbuild()JsonWebTokenClaim.Buildercopy(JsonWebTokenClaim model)JsonWebTokenClaim.BuilderisRequired(Boolean isRequired)Whether the claim is required to be present in the JWT or not.JsonWebTokenClaim.Builderkey(String key)Name of the claim.JsonWebTokenClaim.Buildervalues(List<String> values)The list of acceptable values for a given claim.
 
- 
- 
- 
Method Detail- 
keypublic JsonWebTokenClaim.Builder key(String key) Name of the claim.- Parameters:
- key- the value to set
- Returns:
- this builder
 
 - 
valuespublic 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
 
 - 
isRequiredpublic 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
 
 - 
buildpublic JsonWebTokenClaim build() 
 - 
copypublic JsonWebTokenClaim.Builder copy(JsonWebTokenClaim model) 
 
- 
 
-