Package com.winnovative_software
Class ImpersonationOptions
java.lang.Object
com.winnovative_software.ImpersonationOptions
This class encapsulates the options to control the HTML converter
impersonation during navigation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the flag indicating if the converter should impersonate the HTML to PDF server user account during navigation.domain()
Gets the user Windows domain name.Gets the logon mode of the user before navigation.password()
Gets the password of the user specified byusername()
anddomain()
properties.void
setCurrentUserImpersonation
(boolean impersonate) Sets the flag indicating if the converter should impersonate the HTML to PDF server user account during navigation.void
Sets the user Windows domain name.void
setLogonMode
(ImpersonationLogonMode logonMode) Sets the logon mode of the user before navigation.void
setPassword
(String password) Sets the password of the user specified byusername()
anddomain()
properties.void
setUsername
(String username) Sets the name of the user to logon before navigation.username()
Gets the name of the user to logon before navigation.
-
Constructor Details
-
ImpersonationOptions
public ImpersonationOptions()
-
-
Method Details
-
currentUserImpersonation
public boolean currentUserImpersonation()Gets the flag indicating if the converter should impersonate the HTML to PDF server user account during navigation.- Returns:
- the flag value
-
setCurrentUserImpersonation
public void setCurrentUserImpersonation(boolean impersonate) Sets the flag indicating if the converter should impersonate the HTML to PDF server user account during navigation. By default this property is false.- Parameters:
impersonate
- the flag value to set
-
username
Gets the name of the user to logon before navigation.- Returns:
- the username to use for impersonation
-
setUsername
Sets the name of the user to logon before navigation. Thedomain()
andpassword()
properties must also be set. This property has priority over thecurrentUserImpersonation()
property.- Parameters:
username
- the username to set
-
domain
Gets the user Windows domain name.- Returns:
- the user Windows domain
-
setDomain
Sets the user Windows domain name. This property together withusername()
property define the user to logon before navigation. If the user is not part of a Windows domain the machine name can be used. By default this property is not set.- Parameters:
domain
- the user Windows domain to set
-
password
Gets the password of the user specified byusername()
anddomain()
properties.- Returns:
- the user password
-
setPassword
Sets the password of the user specified byusername()
anddomain()
properties. By default this property is not set.- Parameters:
password
- the user password to set
-
logonMode
Gets the logon mode of the user before navigation.- Returns:
- the logon mode
-
setLogonMode
Sets the logon mode of the user before navigation. This property has effect only when a username for impersonation is specified. The default logon mode is explicit.- Parameters:
logonMode
- the logon mode to use
-