Package com.nimbusds.jose.proc
Interface JOSEObjectTypeVerifier<C extends SecurityContext>
-
- All Known Implementing Classes:
DefaultJOSEObjectTypeVerifier
public interface JOSEObjectTypeVerifier<C extends SecurityContext>
JOSE object type (header "typ" parameter) verifier.Example JOSE header with a "typ" (type) parameter set to "at+jwt":
{ "alg" : "ES256", "typ" : "at+jwt", "kid" : "123" }- Since:
- 8.0
- Version:
- 2019-10-14
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidverify(JOSEObjectType type, C context)Verifies the JOSE "typ" (type) header parameter.
-
-
-
Method Detail
-
verify
void verify(JOSEObjectType type, C context) throws BadJOSEException
Verifies the JOSE "typ" (type) header parameter.- Parameters:
type- The "typ" (type) header parameter,nullif not set.context- Optional context,nullif not required.- Throws:
BadJOSEException- If the type is rejected.
-
-