net.i2p.sam

## Interface SAMSecureSessionInterface

- All Known Implementing Classes:
    SAMSecureSession

      public interface SAMSecureSessionInterface

  SAMSecureSessionInterface is used for implementing interactive authentication to SAM applications. It needs to be implemented by a class for Desktop and Android applications and passed to the SAM bridge when constructed. It is NOT required that a SAM API have this feature. It is recommended that it be implemented for platforms which have a very hostile malware landscape like Android.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `approveOrDenySecureSession(Properties i2cpProps, Properties props)` Within this function, read and accept input from a user to approve a SAM connection.

- - ### Method Detail

    - #### approveOrDenySecureSession

          boolean approveOrDenySecureSession(Properties i2cpProps,
                                             Properties props)
                                      throws SAMException

      Within this function, read and accept input from a user to approve a SAM connection. Return false by default if the connection is approved by user input:
      Returns:
        true
      Throws:
        `SAMException`