public interface IEncryptionSession
Represents an instance of document encryption
Modifier and Type | Method and Description |
---|---|
com.aspose.ms.System.IO.Stream |
decrypt(byte[] encryptedBytes) |
com.aspose.ms.System.IO.Stream |
decrypt(byte[] encryptedBytes,
int encryptedPackageLength) |
com.aspose.ms.System.IO.Stream |
decrypt(com.aspose.ms.System.IO.Stream stream) |
byte[] |
encrypt(byte[] buffer) |
int |
getCipherBlockBytes() |
com.aspose.ms.System.Security.Cryptography.ICryptoTransform |
getDecryptor() |
com.aspose.ms.System.IO.Stream |
getEncryptedStream(com.aspose.ms.System.IO.Stream stream) |
byte[] |
getEncryptionConfig() |
com.aspose.ms.System.Security.Cryptography.ICryptoTransform |
getEncryptor() |
boolean |
isUnlocked() |
void |
save(EncryptionConfig[] config,
CryptoEncryptionData[] data) |
void |
setPassword(String password) |
boolean |
unlockWithPassword(String password) |
void |
writeToStream(com.aspose.ms.System.IO.Stream stream) |
boolean isUnlocked()
int getCipherBlockBytes()
void setPassword(String password)
boolean unlockWithPassword(String password)
void writeToStream(com.aspose.ms.System.IO.Stream stream)
byte[] getEncryptionConfig()
com.aspose.ms.System.IO.Stream getEncryptedStream(com.aspose.ms.System.IO.Stream stream)
com.aspose.ms.System.IO.Stream decrypt(byte[] encryptedBytes)
com.aspose.ms.System.IO.Stream decrypt(byte[] encryptedBytes, int encryptedPackageLength)
com.aspose.ms.System.IO.Stream decrypt(com.aspose.ms.System.IO.Stream stream)
byte[] encrypt(byte[] buffer)
com.aspose.ms.System.Security.Cryptography.ICryptoTransform getEncryptor()
com.aspose.ms.System.Security.Cryptography.ICryptoTransform getDecryptor()
void save(EncryptionConfig[] config, CryptoEncryptionData[] data)
Copyright (c) 2017 Aspose. All Rights Reserved.