EncryptedCredentials class
Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
Constructors
- EncryptedCredentials({required String data, required String hash, required String secret})
-
Creates a new EncryptedCredentials object.
const
-
EncryptedCredentials.fromJson(Map<
String, dynamic> json) -
Creates a new EncryptedCredentials object from json.
factory
Properties
- data → String
-
Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication
final
- hash → String
-
Base64-encoded data hash for data authentication
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secret → String
-
Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Creates a new EncryptedCredentials object from json.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited