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.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SAMSecureSession()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `approveOrDenySecureSession(Properties i2cpProps, Properties props)` Authenticate based on the i2cp username/password.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SAMSecureSession

          public SAMSecureSession()

  - ### Method Detail

    - #### approveOrDenySecureSession

          public boolean approveOrDenySecureSession(Properties i2cpProps,
                                                    Properties props)
                                             throws SAMException

      Authenticate based on the i2cp username/password.
      Specified by:
        `approveOrDenySecureSession` in interface `SAMSecureSessionInterface`
      Returns:
        true
      Throws:
        `SAMException`