Package com.zerog.ia.api.pub.controls
Class IAOSXSecureTextService
- java.lang.Object
-
- com.zerog.ia.api.pub.controls.IAOSXSecureTextService
-
public class IAOSXSecureTextService extends java.lang.Object
The IAOSXSecureTextService class exposes OSX secure services to be used on external text fields in custom codes of OSX authenticated installers due to an inherent bug with java in case of elevations.
Example of use:
IAOSXSecureTextService osxSecureService = new IAOSXSecureTextService();
osxSecureService.showSecureTextFieldAndGetInput(.....);
osxSecureService.isSecureTextServicesSupported()
-
-
Constructor Summary
Constructors Constructor Description IAOSXSecureTextService()
Main constructor of the IAOSXSecureTextService class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSecureTextServicesSupported()
Returns if secure text services is supported on OS X in case of authenticated installersjava.lang.String
showSecureTextFieldAndGetInput(java.lang.String messageTitle, java.lang.String messagePrompt, java.lang.String okButtonText, java.lang.String cancelButtonText, java.lang.String defaultValueInTextBox)
Display secure text field on OS X in case of authenticated installersjava.lang.String
showSecureTextFieldAndGetInput(java.lang.String messageTitle, java.lang.String messagePrompt, java.lang.String okButtonText, java.lang.String cancelButtonText, java.lang.String defaultValueInTextBox, boolean isPwdTextField)
Display secure text field with input characters shadowed/normal on OS X in case of authenticated installers
-
-
-
Method Detail
-
isSecureTextServicesSupported
public boolean isSecureTextServicesSupported()
Returns if secure text services is supported on OS X in case of authenticated installers- Returns:
- true/false if OS X secure text services is supported
-
showSecureTextFieldAndGetInput
public java.lang.String showSecureTextFieldAndGetInput(java.lang.String messageTitle, java.lang.String messagePrompt, java.lang.String okButtonText, java.lang.String cancelButtonText, java.lang.String defaultValueInTextBox)
Display secure text field on OS X in case of authenticated installers- Returns:
- Returns string from the secure text field
-
showSecureTextFieldAndGetInput
public java.lang.String showSecureTextFieldAndGetInput(java.lang.String messageTitle, java.lang.String messagePrompt, java.lang.String okButtonText, java.lang.String cancelButtonText, java.lang.String defaultValueInTextBox, boolean isPwdTextField)
Display secure text field with input characters shadowed/normal on OS X in case of authenticated installers- Returns:
- Returns string from the secure text field
-
-