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

com.nimbusds.jose.proc.JWSVerifierFactory 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: 10.0.2
Show newest version
package com.nimbusds.jose.proc;


import java.security.Key;

import com.nimbusds.jose.JOSEException;
import com.nimbusds.jose.JWSHeader;
import com.nimbusds.jose.JWSProvider;
import com.nimbusds.jose.JWSVerifier;


/**
 * JSON Web Signature (JWS) verifier factory.
 *
 * @author Vladimir Dzhuvinov
 * @version 2015-11-16
 */
public interface JWSVerifierFactory extends JWSProvider {


	/**
	 * Creates a new JWS verifier for the specified header and key.
	 *
	 * @param header The JWS header. Not {@code null}.
	 * @param key    The key intended to verify the JWS message. Not
	 *               {@code null}.
	 *
	 * @return The JWS verifier.
	 *
	 * @throws JOSEException If the JWS algorithm is not supported or the
	 *                       key type or length doesn't match the expected
	 *                       for the JWS algorithm.
	 */
	JWSVerifier createJWSVerifier(final JWSHeader header, final Key key)
		throws JOSEException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy