class JwtTokenVerifier {

    public boolean verify(String token) {
        try {
            String subject = extractLogin(token);
            if (Strings.isNullOrEmpty(subject)) {
                throw new MalformedJwtException("'subject' field in token is mandatory");
            }
            return true;
        } catch (JwtException e) {
            LOGGER.info("Failed Jwt verification", e);
            return false;
        }
    }

    @Inject @VisibleForTesting  JwtTokenVerifier(PublicKeyProvider pubKeyProvider);

}