Package com.teamdev.jxbrowser.net
Interface HttpAuthPreferences
public interface HttpAuthPreferences
The HTTP authorization preferences.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the HTTP network delegate authorization whitelist as a string with comma/semicolon separated server URLs.void
delegateWhitelist
(String delegateWhitelist) Configures the HTTP network delegate authorization whitelist.Returns the server HTTP authorization whitelist as a string with comma/semicolon separated server URLs.void
serverWhitelist
(String serverWhitelist) Configures the server HTTP authorization whitelist.
-
Method Details
-
serverWhitelist
String serverWhitelist()Returns the server HTTP authorization whitelist as a string with comma/semicolon separated server URLs.- Returns:
- the current server whitelist or an empty string if the whitelist is not configured
- Throws:
ObjectClosedException
- when the engine is closed and its proxy service is not available anymore
-
serverWhitelist
Configures the server HTTP authorization whitelist. By default, the server whitelist is empty.- Parameters:
serverWhitelist
- the server whitelist as a string with the comma/semicolon separated server URLs, for example:"*example.com,*foobar.com,*baz"
- Throws:
ObjectClosedException
- when the engine is closed and its proxy service is not available anymore
-
delegateWhitelist
String delegateWhitelist()Returns the HTTP network delegate authorization whitelist as a string with comma/semicolon separated server URLs.- Returns:
- the current network delegate authorization whitelist or an empty string if the whitelist is not configured
- Throws:
ObjectClosedException
- when the engine is closed and its proxy service is not available anymore
-
delegateWhitelist
Configures the HTTP network delegate authorization whitelist. By default, the network delegate whitelist is empty.- Parameters:
delegateWhitelist
- the network delegate whitelist as a string with comma/semicolon separated server URLs, for example:"*example.com,*foobar.com,*baz"
- Throws:
ObjectClosedException
- when the engine is closed and its proxy service is not available anymore
-