001package com.nimbusds.openid.connect.provider.spi.crypto; 002 003 004import net.jcip.annotations.ThreadSafe; 005 006import com.nimbusds.jose.JWSObject; 007 008 009/** 010 * Interface exposed by the Connect2id server for verifying JSON Web Signatures 011 * (JWS), such as for JSON Web Tokens (JWT) created by the {@link JWTSigner}. 012 */ 013@ThreadSafe 014public interface JWSVerifier { 015 016 017 /** 018 * Verifies the signature of the specified JWS object. 019 * 020 * @param jwsObject The JWS object. Must not be {@code null}. 021 * 022 * @return {@code true} if the signature is valid, else {@code false}. 023 */ 024 boolean verifySignature(final JWSObject jwsObject); 025}