- 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 MethodsModifier and TypeMethodDescriptionbooleanapproveOrDenySecureSession(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.- Parameters:
i2cpProps- the I2CP session propertiesprops- the SAM connection properties- Returns:
- true if the connection is approved by user input
- Throws:
SAMException- if authentication fails