public void verify ( String token , Consumer < Verification > verificationConsumer ) throws JWTVerificationException , IllegalArgumentException { Verification verifierBuilder = JWT . require ( Algorithm . ECDSA512 ( ecPublicKey , null ) ) . withIssuer ( issuer ) ; // apply any custom verififaction verificationConsumer . accept ( verifierBuilder ) ; JWTVerifier verifier = verifierBuilder . build ( ) ; verifier . verify ( token ) ; }
Verifies the token .