Class EncryptedCredentials
java.lang.Object
io.micronaut.chatbots.telegram.api.EncryptedCredentials
Contains data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EncryptedCredentials
public EncryptedCredentials()
-
-
Method Details
-
getData
- Returns:
- Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.
-
setData
- Parameters:
data
- Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.
-
getHash
- Returns:
- Base64-encoded data hash for data authentication.
-
setHash
- Parameters:
hash
- Base64-encoded data hash for data authentication.
-
getSecret
- Returns:
- Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
-
setSecret
- Parameters:
secret
- Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
-
toString
-