Package com.nimbusds.jwt.proc
Interface JWTClaimsSetVerifier<C extends SecurityContext>
- All Known Implementing Classes:
DefaultJWTClaimsVerifier
public interface JWTClaimsSetVerifier<C extends SecurityContext>
JWT claims set verifier. Ensures the claims set of a JWT that is being
processed
complies with an application's requirements.
An application may implement JWT claims checks such as:
- The JWT is within the required validity time window;
- has a specific issuer;
- has a specific audience;
- has a specific subject;
- etc.
- Since:
- 4.23
- Version:
- 2016-07-25
- Author:
- Vladimir Dzhuvinov
-
Method Summary
Modifier and TypeMethodDescriptionvoid
verify
(JWTClaimsSet claimsSet, C context) Verifies selected or all claims from the specified JWT claims set.
-
Method Details
-
verify
Verifies selected or all claims from the specified JWT claims set.- Parameters:
claimsSet
- The JWT claims set. Notnull
.context
- Optional context,null
if not required.- Throws:
BadJWTException
- If the JWT claims set is rejected.
-