Class VerifiedClaimsConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.VerifiedClaimsConstraint
-
- All Implemented Interfaces:
Constraint
public class VerifiedClaimsConstraint extends BaseConstraint
The class that represents the constraint forverified_claims.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description VerifiedClaimsConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VerifiedClaimsConstraintextract(Map<?,?> map, String key)Create aVerifiedClaimsConstraintinstance from an object in the given map.ClaimsConstraintgetClaims()Get the constraint forclaims.VerificationConstraintgetVerification()Get the constraint forverification.booleanisAllClaimsRequested()Deprecated.voidsetClaims(ClaimsConstraint constraint)Set the constraint forclaims.voidsetVerification(VerificationConstraint constraint)Set the constraint forverification.Map<String,Object>toMap()Create aMapinstance that represents this object in the way conforming to the structure defined in 5.
-
-
-
Method Detail
-
getVerification
public VerificationConstraint getVerification()
Get the constraint forverification.- Returns:
- The constraint for
verification.
-
setVerification
public void setVerification(VerificationConstraint constraint)
Set the constraint forverification.- Parameters:
constraint- The constraint forverification.
-
getClaims
public ClaimsConstraint getClaims()
Get the constraint forclaims.- Returns:
- The constraint for
claims.
-
setClaims
public void setClaims(ClaimsConstraint constraint)
Set the constraint forclaims.- Parameters:
constraint- The constraint forclaims.
-
isAllClaimsRequested
@Deprecated public boolean isAllClaimsRequested()
Deprecated.Get the flag that indicates whetherverified_claimsrequires 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
truewhen"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":nullhas 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.- Returns:
trueif the constraint indicates that all possible claims are required.
-
extract
public static VerifiedClaimsConstraint extract(Map<?,?> map, String key) throws ConstraintException
Create aVerifiedClaimsConstraintinstance from an object in the given map.- Parameters:
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".- Returns:
- A
VerifiedClaimsConstraintinstance that represents"verified_claims". Even if the map does not contain the given key, an instance ofVerifiedClaimsConstraintis returned. - Throws:
ConstraintException- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
toMap
public Map<String,Object> toMap()
Description copied from class:BaseConstraintCreate aMapinstance 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.- Overrides:
toMapin classBaseConstraint- Returns:
- A
Mapinstance that represents this object. IfBaseConstraint.exists()returnsfalseorBaseConstraint.isNull()returnstrue, this method returns null.
-
-