org.apache.tools.ant.inputClass SecureInputHandler
- java.lang.Object
- org.apache.tools.ant.input.DefaultInputHandler
- org.apache.tools.ant.input.SecureInputHandler
- All Implemented Interfaces:
- InputHandler
public class SecureInputHandler extends DefaultInputHandlerPrompts and requests input. May loop until a valid input has been entered. Doesn't echo input (requires Java6). If Java6 is not available, falls back to the DefaultHandler (insecure).
- Since:
- Ant 1.7.1
Constructor Summary
Constructors Constructor and Description SecureInputHandler()
Default no-args constructor
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
handleInput(InputRequest request)
Handle the input
Methods inherited from class org.apache.tools.ant.input.DefaultInputHandler
getInputStream, getPrompt
Method Detail
handleInput
public void handleInput(InputRequest request) throws BuildExceptionHandle the input
- Specified by:
handleInput
in interfaceInputHandler
- Overrides:
handleInput
in classDefaultInputHandler
- Parameters:
request
- the request to handle- Throws:
BuildException
- if not possible to read from console