2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
title: danog\MadelineProto\Settings\Auth: Cryptography settings.
|
|
|
|
description:
|
|
|
|
|
2020-10-16 11:57:00 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
# `danog\MadelineProto\Settings\Auth`
|
|
|
|
[Back to index](../../../index.md)
|
|
|
|
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
|
|
|
|
|
|
Cryptography settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Method list:
|
|
|
|
* `getRsaKeys(): array`
|
|
|
|
* `setRsaKeys(array $rsaKeys): self`
|
|
|
|
* `getDefaultTempAuthKeyExpiresIn(): int`
|
|
|
|
* `setDefaultTempAuthKeyExpiresIn(int $defaultTempAuthKeyExpiresIn): self`
|
|
|
|
* `getPfs(): bool`
|
|
|
|
* `setPfs(bool $pfs): self`
|
|
|
|
* `getMaxAuthTries(): int`
|
|
|
|
* `setMaxAuthTries(int $maxAuthTries): self`
|
|
|
|
* `hasChanged(): bool`
|
|
|
|
|
|
|
|
## Methods:
|
|
|
|
### `getRsaKeys(): array`
|
|
|
|
|
|
|
|
Get MTProto public keys array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `setRsaKeys(array $rsaKeys): self`
|
|
|
|
|
|
|
|
Set MTProto public keys array.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$rsaKeys`: `array` MTProto public keys array.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `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 $maxAuthTries): self`
|
|
|
|
|
|
|
|
Set max tries for generating auth key.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$maxAuthTries`: `int` Max tries for generating auth key
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### `hasChanged(): bool`
|
|
|
|
|
|
|
|
Get whether this setting was changed, also applies changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|