toggle menu
ktgbotapi
common
jvm
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.types.passport.credentials
/
DataCredentials
Data
Credentials
@
Serializable
data
class
DataCredentials
(
val
hash
:
SourceBytes
,
val
secret
:
SourceBytes
)
:
EndDataCredentials
Members
Members & Extensions
Constructors
Data
Credentials
Link copied to clipboard
constructor
(
hash
:
SourceBytes
,
secret
:
SourceBytes
)
Properties
hash
Link copied to clipboard
@
SerialName
(
value
=
"data_hash"
)
@
Serializable
(
with
=
Base64BytesToFromStringSerializer::class
)
open
override
val
hash
:
SourceBytes
secret
Link copied to clipboard
@
SerialName
(
value
=
"secret"
)
@
Serializable
(
with
=
Base64BytesToFromStringSerializer::class
)
open
override
val
secret
:
SourceBytes
Functions
create
Decryptor
Link copied to clipboard
jvm
fun
EndDataCredentials
.
createDecryptor
(
)
:
Decryptor
decrypt
Data
Link copied to clipboard
jvm
fun
EndDataCredentials
.
decryptData
(
bytes
:
EncryptedData
)
:
SourceBytes