com.groupdocs.viewer.handlers
Class FilePathEncryptHandler
java.lang.Object
com.groupdocs.viewer.handlers.FilePathEncryptHandler
public class FilePathEncryptHandler
- extends Object
- Author:
- Alex Bobkov
DELIMINATOR
public static final String DELIMINATOR
- See Also:
- Constant Field Values
FilePathEncryptHandler
public FilePathEncryptHandler()
encrypt
public static String encrypt(String filePath,
String key,
int timeToLive)
- Encrypt file path with sensitive time attribute
- Parameters:
filePath
- full path to filekey
- secret keytimeToLive
- time for file expiration in minutes
- Returns:
- encrypted value
encrypt
public static String encrypt(String filePath,
String key)
- Encrypt file path
- Parameters:
filePath
- full path to filekey
- secret key
- Returns:
- encrypted value
decrypt
public static String decrypt(String value,
String key)
- Decrypt file path with sensitive time attribute
- Parameters:
value
- encrypted valuekey
- secret key
- Returns:
- decrypted value
Copyright © 2014. All rights reserved.