code: public void refreshCredentials() {
          if (this.credsProvider == null)
              return;
  
          try {
              AlibabaCloudCredentials creds = this.credsProvider.getCredentials();
              this.accessKeyID = creds.getAccessKeyId();
              this.accessKeySecret = creds.getAccessKeySecret();
  
              if (creds instanceof BasicSessionCredentials) {
                  this.securityToken = ((BasicSessionCredentials) creds).getSessionToken();
              }
  
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
docs: refresh credentials if CredentialProvider set