code: public static DelegatedTokenCredentials fromFile(File authFile, String redirectUrl) throws IOException {
          return new DelegatedTokenCredentials(ApplicationTokenCredentials.fromFile(authFile), redirectUrl);
      }
docs: Creates a new instance of the DelegatedTokenCredentials from an auth file.
  
  @param authFile The credentials based on the file
  @param redirectUrl the URL to redirect to after authentication in Active Directory
  @return a new delegated token credentials
  @throws IOException exception thrown from file access errors.