class Hamilton::Types::EncryptedCredentials

Overview

Describes data required for decrypting and authenticating EncryptedPassportElement.

Included Modules

Defined in:

types/encrypted_credentials.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def data : String #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.


def data=(data : String) #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication.


def hash : String #

Base64-encoded data hash for data authentication.


def hash=(hash : String) #

Base64-encoded data hash for data authentication.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def secret : String #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.


def secret=(secret : String) #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption.