Link Search Menu Expand Document

danog\MadelineProto\Settings\Auth

Back to index

Author: Daniil Gentili daniil@daniil.it

Cryptography settings.

Method list:

Methods:

getDefaultTempAuthKeyExpiresIn(): int

Get validity period of the binding of temporary and permanent keys.

setDefaultTempAuthKeyExpiresIn(int $defaultTempAuthKeyExpiresIn): self

Set validity period of the binding of temporary and permanent keys.

Parameters:

  • $defaultTempAuthKeyExpiresIn: int Validity period of the binding of temporary and permanent keys.

getPfs(): bool

Get whether to use PFS.

setPfs(bool $pfs): self

Set whether to use PFS.

Parameters:

  • $pfs: bool Whether to use PFS

getMaxAuthTries(): int

Get max tries for generating auth key.

setMaxAuthTries(int<\1, \max> $maxAuthTries): self

Set max tries for generating auth key.

Parameters:

  • $maxAuthTries: int<\1, \max> Max tries for generating auth key

See also:

  • \max

Generated by danog/phpdoc