Package net.i2p.sam
Class SAMSecureSession
- java.lang.Object
-
- net.i2p.sam.SAMSecureSession
-
- All Implemented Interfaces:
SAMSecureSessionInterface
public class SAMSecureSession extends Object implements SAMSecureSessionInterface
This is the "default" implementation of the SAMSecureSession @interface that behaves exactly like SAM without interactive authentication. It uses the i2cp username and password properties for authentication. Implementers can add their own means of authentication by substituting this interface for their own.- Since:
- 1.8.0
-
-
Constructor Summary
Constructors Constructor Description SAMSecureSession()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
approveOrDenySecureSession(Properties i2cpProps, Properties props)
Authenticate based on the i2cp username/password.
-
-
-
Method Detail
-
approveOrDenySecureSession
public boolean approveOrDenySecureSession(Properties i2cpProps, Properties props) throws SAMException
Authenticate based on the i2cp username/password.- Specified by:
approveOrDenySecureSession
in interfaceSAMSecureSessionInterface
- Returns:
- true
- Throws:
SAMException
- Since:
- 1.8.0
-
-