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 beingprocessed
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
verify(JWTClaimsSet claimsSet, C context)
Verifies selected or all claims from the specified JWT claims set.
-
-
-
Method Detail
-
verify
void verify(JWTClaimsSet claimsSet, C context) throws BadJWTException
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.
-
-