hyphenate_SDK3.0 4.0.0
hyphenate java IM SDK
Static Public Member Functions | List of all members
com.hyphenate.chat.EMEncryptUtils Class Reference

Static Public Member Functions

static String encryptFile (String filePath, String toUserName)
 
static void decryptFile (String filePath, String fromUserName)
 

Member Function Documentation

◆ decryptFile()

static void com.hyphenate.chat.EMEncryptUtils.decryptFile ( String  filePath,
String  fromUserName 
)
static

Decrypts the attachment file, the action will overwrite the original file.

Parameters
filePathThe attachment file's absolute path.
fromUserNameThe username of the message sender.

◆ encryptFile()

static String com.hyphenate.chat.EMEncryptUtils.encryptFile ( String  filePath,
String  toUserName 
)
static

Encrypts the attachment file.

Parameters
filePathThe absolute path of the attachment file.
toUserNameThe user ID of the message receiver.
Returns
Returns a encrypted file's temporary path.

The documentation for this class was generated from the following file: