Package net.i2p.sam
Class SAMSecureSession
java.lang.Object
net.i2p.sam.SAMSecureSession
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
approveOrDenySecureSession
(Properties i2cpProps, Properties props) Authenticate based on the i2cp username/password.
-
Constructor Details
-
SAMSecureSession
public SAMSecureSession()
-
-
Method Details
-
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
-