MadelineProtoDocs/docs/PHP/danog/MadelineProto/Settings/Auth.md

101 lines
1.7 KiB
Markdown

---
title: danog\MadelineProto\Settings\Auth: Cryptography settings.
description:
---
# `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.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)