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 Type
    Method
    Description
    void
    verify(JOSEObjectType type, C context)
    Verifies the JOSE "typ" (type) header parameter.
  • Method Details

    • verify

      void verify(JOSEObjectType type, C context) throws BadJOSEException
      Verifies the JOSE "typ" (type) header parameter.
      Parameters:
      type - The "typ" (type) header parameter, null if not set.
      context - Optional context, null if not required.
      Throws:
      BadJOSEException - If the type is rejected.