Package org.jose4j.jwt.consumer
Interface JweCustomizer
public interface JweCustomizer
A callback interface that provides a hook to call arbitrary methods on the JsonWebEncryption prior
to the JwtConsumer using it to decrypt the content.
This allows the usage of new and/or esoteric features such as setting the known critical headers
without having to have specific support at JwtConsumer[Builder] layer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(JsonWebEncryption jwe, List<JsonWebStructure> nestingContext) Customize the JsonWebEncryption
-
Method Details
-
customize
Customize the JsonWebEncryption- Parameters:
jwe- the JsonWebEncryption that can be customized prior to decryptionnestingContext- a list of JOSE objects, if any, in which the JWE was nested. The last item in the list is the outer most JOSE object (not including the current JWE).
-