Object

spinoco.fs2.interop.ssl.SSLEngine

impl

Related Doc: package SSLEngine

Permalink

object impl

Source
SSLEngine.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. impl
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val EmptyBytes: Chunk[Byte]

    Permalink
  5. object EngineOpName extends Enumeration

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def buffer2Bytes(buffer: ByteBuffer): Chunk[Byte]

    Permalink

    Supplied buffer is consumed to produce bytes.

    Supplied buffer is consumed to produce bytes.

    It is expected that buffer is in write-ready state.

    Buffer is cleared to be fresh to receive new output data

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def fillBuffer(bytes: Chunk[Byte], buffer: ByteBuffer): ByteBuffer

    Permalink

    With supplied bytes fill the supplied buffer.

    With supplied bytes fill the supplied buffer. Note that this may create new buffer, if supplied buffer is not able to hold bytes supplied.

    This expected supplied buffer to be in write-ready state, while resulting buffer is in read-ready state

  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def resizeBufferW(buffer: ByteBuffer, desired: Int): ByteBuffer

    Permalink

    Creates new buffer of desired size.

    Creates new buffer of desired size. Resulting buffer is ready to be written at full capacity. All data in buffer are lost

    buffer

    Buffer to resize, potentially with some data

    desired

    Desired size of new buffer

  20. def runTasks[F[_]](engine: javax.net.ssl.SSLEngine)(implicit F: Async[F], S: Strategy): F[Unit]

    Permalink

    runs all available tasks , retruning when tasks has been finished *

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. def unwrap[F[_]](engine: javax.net.ssl.SSLEngine, bytes: Chunk[Byte], buffers: Ref[F, (ByteBuffer, ByteBuffer)])(implicit F: Async[F], S: Strategy): F[Result]

    Permalink

    Perform un-wrap operation on engine.

    Perform un-wrap operation on engine.

    Note that apart of performing the un-wrap, this handles following:

    - acquires un-wrap lock - if the un-wrap resulted in NEED_TASK, then tha task i executed with supplied S strategy - If the buffer UNDERFLOW is returned then we memoize the bytes with signal received and request for more bytes to input - If the buffer OVERFLOW

    As the last operation this releases the acquired lock to prevent concurrent unwraps to be executed simultaneously.

    engine

    SSL Engine this operates on

    bytes

    Bytes to wrap

    buffers

    Contains reference to active buffers used to perform I/O. The first buffer is buffer with encrypted data. Second buffer is buffer with decrypted data. Second buffer is always empty, when this finishes, while first buffer may contain data to be used at next invocation of unwrap.

  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. def wrap[F[_]](engine: javax.net.ssl.SSLEngine, bytes: Chunk[Byte], buffers: Ref[F, (ByteBuffer, ByteBuffer)])(implicit F: Async[F], S: Strategy): F[Result]

    Permalink

    Perform wrap operation on engine.

    Perform wrap operation on engine.

    Note that apart of performing the wrap, this handles following:

    - acquires wrap lock - if the wrap resulted in NEED_TASK, then tha task i executed with supplied S strategy - If the buffer UNDER/OVERFLOW is signalled new destination buffer is allocated and returned

    As the last operation this releases the acquired wrap lock, to prevent two concurrent wraps to be executed.

    engine

    SSL Engine this operates on

    bytes

    Bytes to wrap

    buffers

    Contains reference to active buffers used to perform I/O. The first buffer is buffer with application data. Second buffer is buffer with encrypted data. Second buffer is always empty, when this finishes, while first buffer may contain data to be used at next invocation of wrap.

  28. def wrapUnwrap[F[_]](engine: javax.net.ssl.SSLEngine, bytes: Chunk[Byte], buffers: Ref[F, (ByteBuffer, ByteBuffer)])(op: impl.EngineOpName.Value)(implicit F: Async[F], S: Strategy): F[Result]

    Permalink

    helper to perform wrap/unwrap *

Inherited from AnyRef

Inherited from Any

Ungrouped