|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.extentech.ExtenXLS.DocumentHandle
com.extentech.ExtenXLS.WorkBookHandle
com.extentech.ExtenXLS.EncryptedWorkBookHandle
public class EncryptedWorkBookHandle
EncryptedWorkBookHandle is a WorkBookHandle that manages encrypted files. Encryption within Excel 2007 files (xlsx) and earlier binary versions of excel (xls) is dramatically different. If security is a concern, the AES encryption of xlsx files is superior. Passwords are required to open EncryptedWorkBooks, and if not re-set they will save as encrypted files utilizing the same password that they were opened as. Utilize the writeEncrypted methods to output encrypted workbooks. The standard write() methods will output unencrypted workbooks if needed
| Field Summary |
|---|
| Fields inherited from class com.extentech.ExtenXLS.WorkBookHandle |
|---|
CONVERTMULBLANKS, FORMAT_XLS, FORMAT_XLSM, FORMAT_XLSX, FORMAT_XLTM, FORMAT_XLTX |
| Fields inherited from class com.extentech.ExtenXLS.DocumentHandle |
|---|
FORMAT_NATIVE |
| Fields inherited from interface com.extentech.ExtenXLS.WorkBook |
|---|
ALLOWDUPES, CALC_MODE_PROP, CALCULATE_ALWAYS, CALCULATE_AUTO, CALCULATE_EXPLICIT, REFTRACK_PROP, SHAREDUPES, STRING_ENCODING_AUTO, STRING_ENCODING_COMPRESSED, STRING_ENCODING_UNICODE |
| Fields inherited from interface com.extentech.ExtenXLS.Document |
|---|
DEBUG_HIGH, DEBUG_LOW, DEBUG_MEDIUM |
| Constructor Summary | |
|---|---|
EncryptedWorkBookHandle(InputStream encryptedBook,
String password)
Create a new WorkBookHandle from the byte array passed in. |
|
EncryptedWorkBookHandle(String password)
Default constructor creates a new, empty EncryptedWorkBookHandle with a password set for saveEncrypted functionality 3 WorkSheets: "Sheet1","Sheet2",and "Sheet3". |
|
EncryptedWorkBookHandle(WorkBookHandle workbook,
String password)
Constructor to convert a WorkBookHandle into an EncryptedWorkBookHandle. |
|
| Method Summary | |
|---|---|
static void |
writeAndEncrypt(WorkBookHandle book,
OutputStream out,
String password)
A static utility method to write a xlsx workbook in 128 bit AES encryption to the OutputStream provided. |
void |
writeEncrypted(OutputStream out)
Write a workbook in 128 bit encryption to the OutputStream provided, utilizing the same password it was originally opened or created with. |
void |
writeEncrypted(OutputStream out,
boolean Excel2007Format,
String password)
Write a workbook in 128 bit encryption to the OutputStream provided. |
void |
writeEncrypted(OutputStream out,
String password)
Write a workbook in 128 bit encryption to the OutputStream provided. |
| Methods inherited from class com.extentech.ExtenXLS.DocumentHandle |
|---|
addProperty, getFile, getFileName, getInstance, getProperties, getProperty, getVersion, setDebugLevel, setFile, setFileName, setName, setProperties, toString, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.extentech.ExtenXLS.WorkBook |
|---|
addProperty, getProperty, setDebugLevel, setName, toString |
| Constructor Detail |
|---|
public EncryptedWorkBookHandle(String password)
public EncryptedWorkBookHandle(WorkBookHandle workbook,
String password)
workbook - - WorkBookHandle to convert into an EncryptedWorkBookHandlepassword - - Password to save EncryptedWorkBookHandle with
public EncryptedWorkBookHandle(InputStream encryptedBook,
String password)
throws com.extentech.formats.XLS.WorkBookException
encryptedBook - - InputStream containing the valid XLS or XLSX file for reading
WorkBookException - if the inputstream cannot be parsed correctly. Note the error codes provided in WorkBookException can
detail if password is incorrect, if file is corrupt, etc.
com.extentech.formats.XLS.WorkBookException| Method Detail |
|---|
public void writeEncrypted(OutputStream out,
String password)
throws com.extentech.formats.XLS.WorkBookException
out - password - = new password to set to the encrypted workbook
com.extentech.formats.XLS.WorkBookException
public void writeEncrypted(OutputStream out,
boolean Excel2007Format,
String password)
throws com.extentech.formats.XLS.WorkBookException
out - password - = new password to set to the encrypted workbook
com.extentech.formats.XLS.WorkBookException
public static void writeAndEncrypt(WorkBookHandle book,
OutputStream out,
String password)
throws com.extentech.formats.XLS.WorkBookException
out - password - = new password to set to the encrypted workbook
com.extentech.formats.XLS.WorkBookException
public void writeEncrypted(OutputStream out)
throws com.extentech.formats.XLS.WorkBookException
out - password -
com.extentech.formats.XLS.WorkBookException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||