public class VerifiedClaimsConstraint extends BaseConstraint
verified_claims.| Constructor and Description |
|---|
VerifiedClaimsConstraint() |
| Modifier and Type | Method and Description |
|---|---|
static VerifiedClaimsConstraint |
extract(Map<?,?> map,
String key)
Create a
VerifiedClaimsConstraint instance from an object in the given map. |
ClaimsConstraint |
getClaims()
Get the constraint for
claims. |
VerificationConstraint |
getVerification()
Get the constraint for
verification. |
boolean |
isAllClaimsRequested()
Deprecated.
|
void |
setClaims(ClaimsConstraint constraint)
Set the constraint for
claims. |
void |
setVerification(VerificationConstraint constraint)
Set the constraint for
verification. |
Map<String,Object> |
toMap()
Create a
Map instance that represents this object in the way
conforming to the structure defined in 5. |
public VerificationConstraint getVerification()
verification.verification.public void setVerification(VerificationConstraint constraint)
verification.constraint - The constraint for verification.public ClaimsConstraint getClaims()
claims.claims.public void setClaims(ClaimsConstraint constraint)
claims.constraint - The constraint for claims.@Deprecated public boolean isAllClaimsRequested()
verified_claims requires
all possible claims.
When the value of the "claims" is null like below, it is
"interpreted as a request for all possible Claims."
{
"verified_claims": {
"claims": null
}
}
This method returns true when "claims" does not exist
or the value of "claims" is null.
NOTE: In the Implementer's Draft 1
(ID1) of OpenID Connect for Identity Assurance 1.0,
"claims":null has a special meaning. It is interpreted as
"all possible claims". However, the special rule was removed
from the
ID2. Therefore, this method has been marked as deprecated.
true if the constraint indicates that all possible
claims are required.public static VerifiedClaimsConstraint extract(Map<?,?> map, String key) throws ConstraintException
VerifiedClaimsConstraint instance from an object in the given map.map - A map that may contain "verified_claims".key - The key that identifies the object in the map. In normal cases,
the key is "verified_claims".VerifiedClaimsConstraint instance that represents
"verified_claims". Even if the map does not contain the
given key, an instance of VerifiedClaimsConstraint is
returned.ConstraintException - The structure of the map does not conform to the specification
(OpenID Connect for Identity Assurance 1.0).public Map<String,Object> toMap()
BaseConstraintMap instance that represents this object in the way
conforming to the structure defined in 5. Requesting Verified Claims of OpenID Connect for Identity Assurance 1.0.toMap in class BaseConstraintMap instance that represents this object.
If BaseConstraint.exists() returns false or BaseConstraint.isNull()
returns true, this method returns null.Copyright © 2022. All rights reserved.