Interface Constraint
-
- All Known Implementing Classes:
BaseConstraint,ClaimsConstraint,DocumentConstraint,EvidenceArrayConstraint,EvidenceConstraint,IDDocumentConstraint,IssuerConstraint,LeafConstraint,ProviderConstraint,QESConstraint,TimeConstraint,UtilityBillConstraint,VerificationConstraint,VerifiedClaimConstraint,VerifiedClaimsConstraint,VerifiedClaimsContainerConstraint,VerifierConstraint
public interface ConstraintThe basic interface that classes representing constraints inverified_claimsimplement.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()Check if the key that represents the constraint exists.booleanisNull()Check if the value of the constraint is null.
-
-
-
Method Detail
-
exists
boolean exists()
Check if the key that represents the constraint exists. It does not matter whether the value of the key is null or not.For example,
exists()method of an instance that representsgiven_namein the JSON below will returntrue.{ "verified_claims": { "claims": { "given_name": null } } }- Returns:
trueif the key that represents the constraint exists.
-
isNull
boolean isNull()
Check if the value of the constraint is null.For example,
isNull()method of an instance that representsgiven_namein the JSON below will returntrue.{ "verified_claims": { "claims": { "given_name": null } } }But, the method returnsfalsein the following case.{ "verified_claims": { "claims": { "given_name": { } } } }- Returns:
trueif the value of the constraint is null.
-
-