Interface JWEDecrypterFactory

All Superinterfaces:
JCAAware<JWEJCAContext>, JOSEProvider, JWEProvider
All Known Implementing Classes:
DefaultJWEDecrypterFactory

public interface JWEDecrypterFactory extends JWEProvider
JSON Web Encryption (JWE) decrypter factory.
Version:
2015-11-16
Author:
Vladimir Dzhuvinov
  • Method Details

    • createJWEDecrypter

      Creates a new JWE decrypter for the specified header and key.
      Parameters:
      header - The JWE header. Not null.
      key - The key intended to verify the JWS message. Not null.
      Returns:
      The JWE decrypter.
      Throws:
      JOSEException - If the JWE algorithm / encryption method is not supported or the key type or length doesn't match expected for the JWE algorithm.