Credential

object Credential

Constructs and deconstructs Credential values.

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(id: Long, password: Array[Byte]): Credential

Constructs a new credential using the given session id and password.

Constructs a new credential using the given session id and password.

Value parameters:
id

the session id

password

the session password

Returns:

a credential with the given id and password

Used in pattern matching to deconstruct a credential.

Used in pattern matching to deconstruct a credential.

Value parameters:
cred

selector value

Returns:

a Some containing id and password if the selector value is not null, otherwise None