Class ConstraintValidator
- java.lang.Object
-
- com.authlete.common.assurance.constraint.ConstraintValidator
-
public class ConstraintValidator extends Object
Validator for constraints inverified_claims
.- Since:
- 2.63
- See Also:
- OpenID Connect for Identity Assurance 1.0
-
-
Constructor Summary
Constructors Constructor Description ConstraintValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(ClaimsConstraint claims)
Validate a constraint that representsverified_claims/claims
.void
validate(VerifiedClaimsConstraint verifiedClaims)
Validate a constraint that representsverified_claims
.void
validate(VerifiedClaimsContainerConstraint container)
Validate a constraint that represents an object which includesverified_claims
.void
validate(String key, VerifiedClaimConstraint verifiedClaim)
Validate a constraint that represents a claim inverified_claims/claims
.void
validatePurpose(String key, String purpose)
Validatepurpose
of a claim inverified_claims/claims
.
-
-
-
Method Detail
-
validate
public void validate(VerifiedClaimsContainerConstraint container) throws ConstraintException
Validate a constraint that represents an object which includesverified_claims
.- Parameters:
container
- A constraint which includesverified_claims
.- Throws:
ConstraintException
- The given constraint violates one or more requirements in the specification.
-
validate
public void validate(VerifiedClaimsConstraint verifiedClaims) throws ConstraintException
Validate a constraint that representsverified_claims
.- Parameters:
verifiedClaims
- A constraint which representsverified_claims
.- Throws:
ConstraintException
- The given constraint violates one or more requirements in the specification.
-
validate
public void validate(ClaimsConstraint claims) throws ConstraintException
Validate a constraint that representsverified_claims/claims
.- Parameters:
claims
- A constraint which representsverified_claims/claims
.- Throws:
ConstraintException
- The given constraint violates one or more requirements in the specification.
-
validate
public void validate(String key, VerifiedClaimConstraint verifiedClaim) throws ConstraintException
Validate a constraint that represents a claim inverified_claims/claims
.- Parameters:
verifiedClaims
- A constraint which represents a claim inverified_claims/claims
.- Throws:
ConstraintException
- The given constraint violates one or more requirements in the specification.
-
validatePurpose
public void validatePurpose(String key, String purpose) throws ConstraintException
Validatepurpose
of a claim inverified_claims/claims
.- Parameters:
key
- The name of a claim.purpose
- Thepurpose
of the claim.- Throws:
ConstraintException
- The length of the purpose is shorter than 3 or longer than 300. Whenpurpose
is null, no exception is thrown.
-
-