class DefaultOAuthJwtAccessTokenParser implements OAuthJwtAccessTokenParser {

    public DefaultOAuthJwtAccessTokenParser(KeyStore keyStore, String jwksUrl) throws IllegalArgumentException {
        if (keyStore == null) {
            throw new IllegalArgumentException("DefaultOAuthJwtAccessTokenParser: keyStore is null");
        }

        SigningKeyResolver signingKeyResolver = new KeyStoreJwkKeyResolver(keyStore, jwksUrl, null);
        this.parser = Jwts.parserBuilder()
            .setSigningKeyResolver(signingKeyResolver)
            .setAllowedClockSkewSeconds(ALLOWED_CLOCK_SKEW_SECONDS)
            .build();
    }

    public  DefaultOAuthJwtAccessTokenParser(KeyStore keyStore, String jwksUrl);

}