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.SerializableStas Parshin 30 July 2018- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncryptedPassportElement.Type
-
Constructor Summary
Constructors Constructor Description EncryptedPassportElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdata()DecryptedDatadecryptData(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.Stringemail()booleanequals(java.lang.Object o)PassportFile[]files()PassportFilefrontSide()java.lang.Stringhash()inthashCode()java.lang.StringphoneNumber()PassportFilereverseSide()PassportFileselfie()java.lang.StringtoString()PassportFile[]translation()EncryptedPassportElement.Typetype()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-