@Override public boolean test(JsonWebToken jsonWebToken) throws VerificationException { if (expectedIssuedFor == null) { throw new VerificationException("Missing expectedIssuedFor"); } if (expectedIssuedFor.equals(jsonWebToken.getIssuedFor())) { return true; } throw new VerificationException("Expected issuedFor doesn't match"); } }