Class EncryptedCredentials
- java.lang.Object
-
- io.micronaut.chatbots.telegram.api.EncryptedCredentials
-
public class EncryptedCredentials extends java.lang.ObjectContains 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:
- EncryptedCredentials
-
-
Constructor Summary
Constructors Constructor Description EncryptedCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetData()java.lang.StringgetHash()java.lang.StringgetSecret()voidsetData(java.lang.String data)voidsetHash(java.lang.String hash)voidsetSecret(java.lang.String secret)java.lang.StringtoString()
-
-
-
Method Detail
-
getData
@NonNull public java.lang.String getData()
- Returns:
- Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.
-
setData
public void setData(@NonNull java.lang.String data)- Parameters:
data- Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.
-
getHash
@NonNull public java.lang.String getHash()
- Returns:
- Base64-encoded data hash for data authentication.
-
setHash
public void setHash(@NonNull java.lang.String hash)- Parameters:
hash- Base64-encoded data hash for data authentication.
-
getSecret
public java.lang.String getSecret()
- Returns:
- Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
-
setSecret
public void setSecret(java.lang.String secret)
- Parameters:
secret- Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-