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
(我们属于 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 size
(keyBits - 查看 CipherAlgorithm.rc4 获取允许的值,使用 -1 作为默认大小)
public int getKeyLength()
public java.lang.String getEncryptionProviderName()
public EncryptionInfo getEncryptionInfo()
EncryptionInfo
object for details about encryption settings
(EncryptionInfo 对象以获取有关加密设置的详细信息)
public long getRecordType()
getRecordType
in class
Record
(类 Record 中的 getRecordType)
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
(接口 PositionDependentRecord 中的 updateOtherRecordReferences)
updateOtherRecordReferences
in class
PositionDependentRecordAtom
(类 PositionDependentRecordAtom 中的 updateOtherRecordReferences)
public java.util.Map<java.lang.String,java.util.function.Supplier<?>> getGenericProperties()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.