1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-27 04:28:44 +00:00
tgbotapi/docs/dev.inmo.tgbotapi.utils.passport/index.md

26 lines
7.2 KiB
Markdown
Raw Normal View History

//[docs](../../index.md)/[dev.inmo.tgbotapi.utils.passport](index.md)
# Package dev.inmo.tgbotapi.utils.passport
## Types
| Name | Summary |
|---|---|
| <a name="dev.inmo.tgbotapi.utils.passport/AESDecryptor///PointingToDeclaration/"></a>[AESDecryptor](-a-e-s-decryptor/index.md)| <a name="dev.inmo.tgbotapi.utils.passport/AESDecryptor///PointingToDeclaration/"></a>[jvm] <br>Content <br>class [AESDecryptor](-a-e-s-decryptor/index.md)(**key**: , **iv**: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)) : [Decryptor](-decryptor/index.md) <br><br><br>|
| <a name="dev.inmo.tgbotapi.utils.passport/Decryptor///PointingToDeclaration/"></a>[Decryptor](-decryptor/index.md)| <a name="dev.inmo.tgbotapi.utils.passport/Decryptor///PointingToDeclaration/"></a>[common] <br>Content <br>interface [Decryptor](-decryptor/index.md) <br><br><br>|
## Functions
| Name | Summary |
|---|---|
| <a name="dev.inmo.tgbotapi.utils.passport//createDecryptor/dev.inmo.tgbotapi.types.passport.credentials.EndDataCredentials#/PointingToDeclaration/"></a>[createDecryptor](create-decryptor.md)| <a name="dev.inmo.tgbotapi.utils.passport//createDecryptor/dev.inmo.tgbotapi.types.passport.credentials.EndDataCredentials#/PointingToDeclaration/"></a>[jvm] <br>Content <br>fun [EndDataCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-end-data-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEndDataCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[createDecryptor](create-decryptor.md)(): [Decryptor](-decryptor/index.md) <br>fun [Pair](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-pair/index.html)<, >.[createDecryptor](create-decryptor.md)(): [Decryptor](-decryptor/index.md) <br><br><br>|
| <a name="dev.inmo.tgbotapi.utils.passport//decryptData/dev.inmo.tgbotapi.types.passport.credentials.EndDataCredentials#kotlin.ByteArray/PointingToDeclaration/"></a>[decryptData](decrypt-data.md)| <a name="dev.inmo.tgbotapi.utils.passport//decryptData/dev.inmo.tgbotapi.types.passport.credentials.EndDataCredentials#kotlin.ByteArray/PointingToDeclaration/"></a>[jvm] <br>Content <br>fun [EndDataCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-end-data-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEndDataCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptData](decrypt-data.md)(bytes: ): <br><br><br>|
| <a name="dev.inmo.tgbotapi.utils.passport//decryptFile/dev.inmo.tgbotapi.types.passport.credentials.FileCredentials#kotlin.ByteArray/PointingToDeclaration/"></a>[decryptFile](decrypt-file.md)| <a name="dev.inmo.tgbotapi.utils.passport//decryptFile/dev.inmo.tgbotapi.types.passport.credentials.FileCredentials#kotlin.ByteArray/PointingToDeclaration/"></a>[jvm] <br>Content <br>fun [FileCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-file-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FFileCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptFile](decrypt-file.md)(fileBytes: [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)): <br>suspend fun [FileCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-file-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FFileCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptFile](decrypt-file.md)(bot: , passportFile: [PassportFile](../dev.inmo.tgbotapi.types.passport.encrypted/-passport-file/index.md)): <br><br><br>|
| <a name="dev.inmo.tgbotapi.utils.passport//decryptWithPKCS8PrivateKey/dev.inmo.tgbotapi.types.passport.credentials.EncryptedCredentials#java.security.PrivateKey/PointingToDeclaration/"></a>[decryptWithPKCS8PrivateKey](decrypt-with-p-k-c-s8-private-key.md)| <a name="dev.inmo.tgbotapi.utils.passport//decryptWithPKCS8PrivateKey/dev.inmo.tgbotapi.types.passport.credentials.EncryptedCredentials#java.security.PrivateKey/PointingToDeclaration/"></a>[jvm] <br>Content <br>fun [EncryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-encrypted-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEncryptedCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptWithPKCS8PrivateKey](decrypt-with-p-k-c-s8-private-key.md)(privateKey: [PrivateKey](https://docs.oracle.com/javase/8/docs/api/java/security/PrivateKey.html)): [DecryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-decrypted-credentials/index.md) <br>fun [EncryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-encrypted-credentials/index.md#%5Bdev.inmo.tgbotapi.types.passport.credentials%2FEncryptedCredentials%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[decryptWithPKCS8PrivateKey](decrypt-with-p-k-c-s8-private-key.md)(key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)): [DecryptedCredentials](../dev.inmo.tgbotapi.types.passport.credentials/-decrypted-credentials/index.md) <br><br><br>|
| <a name="dev.inmo.tgbotapi.utils.passport//doInDecryptionContextWithPKCS8Key/dev.inmo.tgbotapi.types.passport.PassportData#java.security.PrivateKey#kotlin.String?#kotlin.Function1[dev.inmo.tgbotapi.types.passport.decrypted.SecureData,TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/"></a>[doInDecryptionContextWithPKCS8Key](do-in-decryption-context-with-p-k-c-s8-key.md)| <a name="dev.inmo.tgbotapi.utils.passport//doInDecryptionContextWithPKCS8Key/dev.inmo.tgbotapi.types.passport.PassportData#java.security.PrivateKey#kotlin.String?#kotlin.Function1[dev.inmo.tgbotapi.types.passport.decrypted.SecureData,TypeParam(bounds=[kotlin.Any?])]/PointingToDeclaration/"></a>[jvm] <br>Content <br>inline fun <[T](do-in-decryption-context-with-p-k-c-s8-key.md)> [PassportData](../dev.inmo.tgbotapi.types.passport/-passport-data/index.md#%5Bdev.inmo.tgbotapi.types.passport%2FPassportData%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[doInDecryptionContextWithPKCS8Key](do-in-decryption-context-with-p-k-c-s8-key.md)(pkcs8Key: [PrivateKey](https://docs.oracle.com/javase/8/docs/api/java/security/PrivateKey.html), expectedNonce: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, crossinline block: [SecureData](../dev.inmo.tgbotapi.types.passport.decrypted/-secure-data/index.md).() -> [T](do-in-decryption-context-with-p-k-c-s8-key.md)): [T](do-in-decryption-context-with-p-k-c-s8-key.md) <br>inline fun <[T](do-in-decryption-context-with-p-k-c-s8-key.md)> [PassportData](../dev.inmo.tgbotapi.types.passport/-passport-data/index.md#%5Bdev.inmo.tgbotapi.types.passport%2FPassportData%2F%2F%2FPointingToDeclaration%2F%5D%2FExtensions%2F745855401).[doInDecryptionContextWithPKCS8Key](do-in-decryption-context-with-p-k-c-s8-key.md)(pkcs8Key: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html), expectedNonce: [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)? = null, crossinline block: [SecureData](../dev.inmo.tgbotapi.types.passport.decrypted/-secure-data/index.md).() -> [T](do-in-decryption-context-with-p-k-c-s8-key.md)): [T](do-in-decryption-context-with-p-k-c-s8-key.md) <br><br><br>|