Class VerifiedClaimsContainerConstraint
- java.lang.Object
-
- com.authlete.common.assurance.constraint.BaseConstraint
-
- com.authlete.common.assurance.constraint.VerifiedClaimsContainerConstraint
-
- All Implemented Interfaces:
Constraint
public class VerifiedClaimsContainerConstraint extends BaseConstraint
The class that represents the constraint which includesverified_claims
.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description VerifiedClaimsContainerConstraint()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VerifiedClaimsContainerConstraint
extract(Map<?,?> map)
Create aVerifiedClaimsContainerConstraint
instance from the given object.static VerifiedClaimsContainerConstraint
fromJson(String json)
Create aVerifiedClaimsContainerConstraint
instance from the given JSON.VerifiedClaimsConstraint
getVerifiedClaims()
Get the constraint forverified_claims
.void
setVerifiedClaims(VerifiedClaimsConstraint constraint)
Set the constraint forverified_claims
.Map<String,Object>
toMap()
Create aMap
instance that represents this object in the way conforming to the structure defined in 5.
-
-
-
Method Detail
-
getVerifiedClaims
public VerifiedClaimsConstraint getVerifiedClaims()
Get the constraint forverified_claims
.- Returns:
- The constraint for
verified_claims
.
-
setVerifiedClaims
public void setVerifiedClaims(VerifiedClaimsConstraint constraint)
Set the constraint forverified_claims
.- Parameters:
constraint
- The constraint forverified_claims
.
-
extract
public static VerifiedClaimsContainerConstraint extract(Map<?,?> map) throws ConstraintException
Create aVerifiedClaimsContainerConstraint
instance from the given object.- Parameters:
map
- A map that represents a constraint which includes"verified_claims"
.- Returns:
- A
VerifiedClaimsContainerConstraint
instance that represents a constraint which includes"verified_claims"
. - Throws:
ConstraintException
- The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
fromJson
public static VerifiedClaimsContainerConstraint fromJson(String json) throws com.google.gson.JsonSyntaxException, ConstraintException
Create aVerifiedClaimsContainerConstraint
instance from the given JSON.Values returned from
getIdTokenClaims()
andgetUserInfoClaims()
ofAuthorizationResponse
are good candidates to be given to this method.- Parameters:
json
- JSON that may include"verified_claims"
.- Returns:
- A
VerifiedClaimsContainerConstraint
instance that represents the given JSON. - Throws:
com.google.gson.JsonSyntaxException
- The given string is not valid JSON.ConstraintException
- The structure of the JSON does not conform to the specification (OpenID Connect for Identity Assurance 1.0).
-
toMap
public Map<String,Object> toMap()
Description copied from class:BaseConstraint
Create aMap
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.- Overrides:
toMap
in classBaseConstraint
- Returns:
- A
Map
instance that represents this object. IfBaseConstraint.exists()
returnsfalse
orBaseConstraint.isNull()
returnstrue
, this method returns null.
-
-