src/main/java/com/aliyun/oss/common/auth/EcsRamRoleCredentialsProvider.java [43:57]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Credentials getCredentials() {        
        if (credentials == null || credentials.willSoonExpire()) {
            synchronized (this) {
                if (credentials == null || credentials.willSoonExpire()) {
                    try {
                        credentials = (BasicCredentials) fetcher.fetch(maxRetryTimes);
                    } catch (ClientException e) {
                        LogUtils.logException("EcsRoleCredentialsProvider.fetch Exception:", e);
                        return null;
                    }
                }
            }
        }
        return credentials;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/com/aliyun/oss/common/auth/CustomSessionCredentialsProvider.java [45:59]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Credentials getCredentials() {        
        if (credentials == null || credentials.willSoonExpire()) {
            synchronized (this) {
                if (credentials == null || credentials.willSoonExpire()) {
                    try {
                        credentials = (BasicCredentials) fetcher.fetch(maxRetryTimes);
                    } catch (ClientException e) {
                        LogUtils.logException("OssAuthCredentialsProvider.fetch Exception:", e);
                        return null;
                    }
                }
            }
        }
        return credentials;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



