
com.nimbusds.jose.proc.JWSVerifierFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimbus-jose-jwt Show documentation
Show all versions of nimbus-jose-jwt Show documentation
Java library for Javascript Object Signing and Encryption (JOSE) and
JSON Web Tokens (JWT)
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