org.apache.tools.ant.input

Class SecureInputHandler

Implemented Interfaces:
InputHandler

public class SecureInputHandler
extends DefaultInputHandler

Prompts and requests input. May loop until a valid input has been entered. Doesn't echo input (requires Java6). If Java6 is not available, fallsback to the DefaultHandler (insecure).
Since:
Ant 1.7.1

Constructor Summary

SecureInputHandler()
Default no-args constructor

Method Summary

void
handleInput(InputRequest request)
Handle the input

Methods inherited from class org.apache.tools.ant.input.DefaultInputHandler

getInputStream, getPrompt, handleInput

Constructor Details

SecureInputHandler

public SecureInputHandler()
Default no-args constructor

Method Details

handleInput

public void handleInput(InputRequest request)
            throws BuildException
Handle the input
Specified by:
handleInput in interface InputHandler
Overrides:
handleInput in interface DefaultInputHandler
Parameters:
request - the request to handle
Throws:
BuildException - if not possible to read from console