SecureInputHandler (Apache Ant API)
Date: 2018-09-12

Package org.apache.tools.ant.input

## Class SecureInputHandler

- java.lang.Object
- - org.apache.tools.ant.input.DefaultInputHandler
  - - org.apache.tools.ant.input.SecureInputHandler

- All 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.
  Since:
    Ant 1.7.1

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `SecureInputHandler()` | Default no-args constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `handleInput​(InputRequest request)` | Handle the input

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

      `getInputStream, getPrompt`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SecureInputHandler

          public SecureInputHandler()

      Default no-args constructor

  - ### Method Detail

    - #### handleInput

          public void handleInput​(InputRequest request)
                           throws BuildException

      Handle the input
      Specified by:
        `handleInput` in interface `InputHandler`
      Overrides:
        `handleInput` in class `DefaultInputHandler`
      Parameters:
        `request` - the request to handle
      Throws:
        `BuildException` - if not possible to read from console