|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.record.Record
org.apache.poi.hslf.record.RecordAtom
org.apache.poi.hslf.record.PositionDependentRecordAtom
org.apache.poi.hslf.record.DocumentEncryptionAtom
public final class DocumentEncryptionAtom
A Document Encryption Atom (type 12052). Holds information on the Encryption of a Document
Field Summary |
---|
Fields inherited from class org.apache.poi.hslf.record.Record |
---|
logger |
Constructor Summary | |
---|---|
|
DocumentEncryptionAtom()
|
protected |
DocumentEncryptionAtom(byte[] source,
int start,
int len)
For the Document Encryption Atom |
Method Summary | |
---|---|
EncryptionInfo |
getEncryptionInfo()
|
java.lang.String |
getEncryptionProviderName()
Return the name of the encryption provider used |
int |
getKeyLength()
Return the length of the encryption key, in bits |
long |
getRecordType()
We are of type 12052 |
void |
initializeEncryptionInfo(int keyBits)
Initializes the encryption settings |
void |
updateOtherRecordReferences(java.util.Map<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
Offer the record the list of records that have changed their location as part of the writeout. |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk |
Methods inherited from class org.apache.poi.hslf.record.PositionDependentRecordAtom |
---|
getLastOnDiskOffset, setLastOnDiskOffset |
Methods inherited from class org.apache.poi.hslf.record.RecordAtom |
---|
getChildRecords, isAnAtom |
Methods inherited from class org.apache.poi.hslf.record.Record |
---|
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DocumentEncryptionAtom(byte[] source, int start, int len) throws java.io.IOException
java.io.IOException
public DocumentEncryptionAtom()
Method Detail |
---|
public void initializeEncryptionInfo(int keyBits)
keyBits
- see CipherAlgorithm.rc4
for allowed values, use -1 for default sizepublic int getKeyLength()
public java.lang.String getEncryptionProviderName()
public EncryptionInfo getEncryptionInfo()
EncryptionInfo
object for details about encryption settingspublic long getRecordType()
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
writeOut
in class Record
java.io.IOException
public void updateOtherRecordReferences(java.util.Map<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
PositionDependentRecordAtom
updateOtherRecordReferences
in interface PositionDependentRecord
updateOtherRecordReferences
in class PositionDependentRecordAtom
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |