All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nimbusds.jose.proc.JWEDecrypterFactory Maven / Gradle / Ivy

Go to download

Java library for Javascript Object Signing and Encryption (JOSE) and JSON Web Tokens (JWT)

There is a newer version: 9.48
Show newest version
package com.nimbusds.jose.proc;


import java.security.Key;

import com.nimbusds.jose.JOSEException;
import com.nimbusds.jose.JWEDecrypter;
import com.nimbusds.jose.JWEHeader;
import com.nimbusds.jose.JWEProvider;


/**
 * JSON Web Encryption (JWE) decrypter factory.
 *
 * @author Vladimir Dzhuvinov
 * @version 2015-11-16
 */
public interface JWEDecrypterFactory extends JWEProvider {


	/**
	 * Creates a new JWE decrypter for the specified header and key.
	 *
	 * @param header The JWE header. Not {@code null}.
	 * @param key    The key intended to verify the JWS message. Not
	 *               {@code null}.
	 *
	 * @return 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.
	 */
	JWEDecrypter createJWEDecrypter(final JWEHeader header, final Key key)
		throws JOSEException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy