docs
5.1.1
common
jvm
docs
/
dev.inmo.tgbotapi.types.passport.credentials
/
DataCredentials
Data
Credentials
@
Serializable
data
class
DataCredentials
(
val
hash
:
SourceBytes
,
val
secret
:
SourceBytes
)
:
EndDataCredentials
Constructors
Properties
Extensions
Constructors
Data
Credentials
Link copied to clipboard
fun
DataCredentials
(
hash
:
SourceBytes
,
secret
:
SourceBytes
)
Properties
hash
Link copied to clipboard
@
Serializable
(
with
=
Base64BytesToFromStringSerializer::class
)
open
override
val
hash
:
SourceBytes
secret
Link copied to clipboard
@
Serializable
(
with
=
Base64BytesToFromStringSerializer::class
)
open
override
val
secret
:
SourceBytes
Extensions
create
Decryptor
Link copied to clipboard
jvm
fun
EndDataCredentials
.
createDecryptor
(
)
:
Decryptor
decrypt
Data
Link copied to clipboard
jvm
fun
EndDataCredentials
.
decryptData
(
bytes
:
EncryptedData
)
:
SourceBytes