public interface Constraint
verified_claims implement.| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Check if the key that represents the constraint exists.
|
boolean |
isNull()
Check if the value of the constraint is null.
|
boolean exists()
For example, exists() method of an instance that represents
given_name in the JSON below will return true.
{
"verified_claims": {
"claims": {
"given_name": null
}
}
}
true if the key that represents the constraint exists.boolean isNull()
For example, isNull() method of an instance that represents
given_name in the JSON below will return true.
{
"verified_claims": {
"claims": {
"given_name": null
}
}
}
But, the method returns false in the following case.
{
"verified_claims": {
"claims": {
"given_name": {
}
}
}
}
true if the value of the constraint is null.Copyright © 2020. All rights reserved.