Class ChromeHttpLoginCredentials


  • public final class ChromeHttpLoginCredentials
    extends Object
    Provides credentials for IronPdf's embedded Chrome browser to log in to an intranet, extranet or website, impersonating a user. This allows a unique ability to render web-pages as PDFs even on secure intranets, extranets and websites.
    • Constructor Detail

      • ChromeHttpLoginCredentials

        public ChromeHttpLoginCredentials()
    • Method Detail

      • getNetworkPassword

        public String getNetworkPassword()
        Gets network password. Optional: Password credential for Windows / Linux network security authentication.
        Returns:
        the network password
      • setNetworkPassword

        public void setNetworkPassword​(String value)
        Sets network password. Optional: Password credential for Windows / Linux network security authentication.
        Parameters:
        value - the value
      • getNetworkUsername

        public String getNetworkUsername()
        Gets network username. Optional: User-name credential for Windows / Linux network security authentication.
        Returns:
        the network username
      • setNetworkUsername

        public void setNetworkUsername​(String value)
        Sets network username. Optional: User-name credential for Windows / Linux network security authentication.
        Parameters:
        value - the value
      • isEnableCookies

        public boolean isEnableCookies()
        Is enable cookies boolean. Using with setCustomCookies(HashMap)
        Returns:
        the boolean
      • setEnableCookies

        public void setEnableCookies​(boolean enableCookies)
        Sets enable cookies. Using with setCustomCookies(HashMap)
        Parameters:
        enableCookies - enable cookies
      • getCustomCookies

        public HashMap<String,​String> getCustomCookies()
        Gets custom cookies. A Dictionary which allows custom cookies to be posted with every login request, and HTTP request made by RenderUriToHml methods.
        Returns:
        the new HashMap of custom cookies
      • setCustomCookies

        public void setCustomCookies​(HashMap<String,​String> customCookies)
        Sets custom cookies. A Dictionary which allows custom cookies to be posted with every login request, and HTTP request made by RenderUriToHml methods.
        Parameters:
        customCookies - the custom cookies