Class EncryptedCredentials

java.lang.Object
io.micronaut.chatbots.telegram.api.EncryptedCredentials

public class EncryptedCredentials extends Object
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 Details

    • EncryptedCredentials

      public EncryptedCredentials()
  • Method Details

    • getData

      @NonNull public @NonNull 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 @NonNull 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 @NonNull String getHash()
      Returns:
      Base64-encoded data hash for data authentication.
    • setHash

      public void setHash(@NonNull @NonNull String hash)
      Parameters:
      hash - Base64-encoded data hash for data authentication.
    • getSecret

      public String getSecret()
      Returns:
      Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
    • setSecret

      public void setSecret(String secret)
      Parameters:
      secret - Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption
    • toString

      public String toString()
      Overrides:
      toString in class Object