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
Modifier and TypeMethodDescriptionvoidverify(JOSEObjectType type, C context) Verifies the JOSE "typ" (type) header parameter.
-
Method Details
-
verify
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.
-