code: public static void bindCurrent(final Credential... credentials) {
          CURRENT_CREDENTIAL_IDS.set(Arrays.stream(credentials).map(Credential::getId).toArray(String[]::new));
      }
docs: Bind credentials to ThreadLocal.
  
  @param credentials the credentials