MaskingKey

scamper.http.websocket.MaskingKey
See theMaskingKey companion trait
object MaskingKey

Provides factory for MaskingKey.

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MaskingKey.type

Members list

Value members

Concrete methods

def apply(value: Int): MaskingKey

Creates masking key with supplied value.

Creates masking key with supplied value.

Attributes

Throws
java.lang.IllegalArgumentException

if value is zero

def apply(): MaskingKey

Creates masking key with randomly generated value.

Creates masking key with randomly generated value.

Attributes

def get(value: Int): Option[MaskingKey]

Creates masking key with supplied value if nonzero.

Creates masking key with supplied value if nonzero.

Attributes

Returns

Some masking key if value is nonzero; None otherwise