public final class DocumentEncryptionAtom extends PositionDependentRecordAtom
Modifier | Constructor and Description |
---|---|
|
DocumentEncryptionAtom() |
protected |
DocumentEncryptionAtom(byte[] source,
int start,
int len)
For the Document Encryption Atom
|
Modifier and Type | Method and Description |
---|---|
EncryptionInfo |
getEncryptionInfo() |
java.lang.String |
getEncryptionProviderName()
Return the name of the encryption provider used
|
java.util.Map<java.lang.String,java.util.function.Supplier<?>> |
getGenericProperties() |
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
|
getLastOnDiskOffset, setLastOnDiskOffset
getChildRecords, isAnAtom
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
protected DocumentEncryptionAtom(byte[] source, int start, int len)
public DocumentEncryptionAtom()
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
public void updateOtherRecordReferences(java.util.Map<java.lang.Integer,java.lang.Integer> oldToNewReferencesLookup)
PositionDependentRecordAtom
updateOtherRecordReferences
in interface PositionDependentRecord
updateOtherRecordReferences
in class PositionDependentRecordAtom
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.