public Authentication verifyIdToken(String idToken) throws InvalidTokenException, TokenExpiredException {
        CacheProvider cp = cp();
        Authentication authc = cp.get(idToken);
        if(null != authc) {
            if(!authc.isExpired()) {
                return authc;
            }else{
                cp.remove(idToken);
            }
        }
        
        //check is jwt token?
        boolean jwt = checkJwtToken(idToken);
        if(jwt) {
            authc = tp().verifyIdToken(idToken);
        }else{
            throw new InvalidTokenException("idToken is not and jwt token:"+idToken);
        }

        cp.put(idToken, authc, authc.getExpires());

        return authc;
    }
public Authentication verifyIdToken ( String idToken ) throws InvalidTokenException , TokenExpiredException { CacheProvider cp = cp ( ) ; Authentication authc = cp . get ( idToken ) ; if ( null != authc ) { if ( ! authc . isExpired ( ) ) { return authc ; } else { cp . remove ( idToken ) ; } } boolean jwt = checkJwtToken ( idToken ) ; if ( jwt ) { authc = tp ( ) . verifyIdToken ( idToken ) ; } else { throw new InvalidTokenException ( "idToken is not and jwt token:" + idToken ) ; } cp . put ( idToken , authc , authc . getExpires ( ) ) ; return authc ; }
验证登录后获取到的Id Token并返回认证信息。

@throws InvalidTokenException 如果idToken是无效的
@throws TokenExpiredException 如果idToken已经过期

@since 3.0.1