Package com.pengrad.telegrambot.passport
Class EncryptedPassportElement
- java.lang.Object
-
- com.pengrad.telegrambot.passport.EncryptedPassportElement
-
- All Implemented Interfaces:
java.io.Serializable
public class EncryptedPassportElement extends java.lang.Object implements java.io.Serializable
Stas Parshin 30 July 2018- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EncryptedPassportElement.Type
-
Constructor Summary
Constructors Constructor Description EncryptedPassportElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
data()
DecryptedData
decryptData(Credentials credentials)
byte[]
decryptFile(byte[] fileData, FileCredentials fileCredentials)
byte[]
decryptFile(PassportFile passportFile, Credentials credentials, TelegramBot bot)
byte[]
decryptFile(PassportFile passportFile, FileCredentials fileCredentials, TelegramBot bot)
java.lang.String
email()
boolean
equals(java.lang.Object o)
PassportFile[]
files()
PassportFile
frontSide()
java.lang.String
hash()
int
hashCode()
java.lang.String
phoneNumber()
PassportFile
reverseSide()
PassportFile
selfie()
java.lang.String
toString()
PassportFile[]
translation()
EncryptedPassportElement.Type
type()
-
-
-
Method Detail
-
decryptData
public DecryptedData decryptData(Credentials credentials) throws java.lang.Exception
- Throws:
java.lang.Exception
-
decryptFile
public byte[] decryptFile(PassportFile passportFile, FileCredentials fileCredentials, TelegramBot bot) throws java.lang.Exception
- Throws:
java.lang.Exception
-
decryptFile
public byte[] decryptFile(PassportFile passportFile, Credentials credentials, TelegramBot bot) throws java.lang.Exception
- Throws:
java.lang.Exception
-
decryptFile
public byte[] decryptFile(byte[] fileData, FileCredentials fileCredentials) throws java.lang.Exception
- Throws:
java.lang.Exception
-
type
public EncryptedPassportElement.Type type()
-
data
public java.lang.String data()
-
phoneNumber
public java.lang.String phoneNumber()
-
email
public java.lang.String email()
-
files
public PassportFile[] files()
-
frontSide
public PassportFile frontSide()
-
reverseSide
public PassportFile reverseSide()
-
selfie
public PassportFile selfie()
-
translation
public PassportFile[] translation()
-
hash
public java.lang.String hash()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-