Package 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.
- Since:
- 1.8.0
-
Method Summary
Modifier and TypeMethodDescriptionboolean
approveOrDenySecureSession
(Properties i2cpProps, Properties props) Within this function, read and accept input from a user to approve a SAM connection.
-
Method Details
-
approveOrDenySecureSession
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
- Since:
- 1.8.0
-