| Modifier and Type | Field and Description |
|---|---|
| private Decryptor | |
| public static final String | ENCRYPTION_INFO_ENTRY
Document entry name for encryption info xml descriptor |
| private final int | |
| private final EncryptionMode | |
| private Encryptor | |
| public static final BitField | flagAES
A value that MUST be 1 if the protected content is an ECMA-376 document ECMA-376. |
| public static final BitField | flagCryptoAPI
A flag that specifies whether CryptoAPI RC4 or ECMA-376 encryption ECMA-376 is used. |
| public static final BitField | flagDocProps
A value that MUST be 0 if document properties are encrypted. |
| public static final BitField | flagExternal
A value that MUST be 1 if extensible encryption is used. |
| private static final int[] | |
| private static final String[] | |
| private EncryptionHeader | |
| private EncryptionVerifier | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | EncryptionInfo(EncryptionMode encryptionMode)
Prepares for encryption, using the given Encryption Mode, and all other parameters as default. |
| public | EncryptionInfo(EncryptionMode
see encryptionMode, CipherAlgorithm EncryptionMode for values, EncryptionMode#cryptoAPI is for
internal use only, as its record basedthe cipher algorithm cipherAlgorithm, HashAlgorithm the hash algorithm hashAlgorithm, int the bit count of the key keyBits, int the size of a cipher block blockSize, ChainingMode the chaining mode chainingMode)Constructs an EncryptionInfo from scratch |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public EncryptionInfo | |
| private static EncryptionInfoBuilder | Returns: an encryption info builderthe encryption mode encryptionMode)Create the builder instance |
| public Decryptor | |
| public int | |
| public EncryptionMode | |
| public Encryptor | |
| public Map | |
| public EncryptionHeader | |
| public EncryptionVerifier | |
| public int | |
| public int | |
| public boolean | Returns: true, if Document Summary / Summary are encrypted and stored in theEncryptedStream stream,
otherwise the Summaries aren't encrypted and located in their usual streams
|
| public void | |
| public void | |
| public void | |
| public void |
| decryptor | back to summary |
|---|---|
| private Decryptor decryptor | |
| ENCRYPTION_INFO_ENTRY | back to summary |
|---|---|
| public static final String ENCRYPTION_INFO_ENTRY Document entry name for encryption info xml descriptor | |
| encryptionFlags | back to summary |
|---|---|
| private final int encryptionFlags | |
| encryptionMode | back to summary |
|---|---|
| private final EncryptionMode encryptionMode | |
| encryptor | back to summary |
|---|---|
| private Encryptor encryptor | |
| flagAES | back to summary |
|---|---|
| public static final BitField flagAES A value that MUST be 1 if the protected content is an ECMA-376 document ECMA-376. If the fAES bit is 1, the fCryptoAPI bit MUST also be 1. | |
| flagCryptoAPI | back to summary |
|---|---|
| public static final BitField flagCryptoAPI A flag that specifies whether CryptoAPI RC4 or ECMA-376 encryption ECMA-376 is used. It MUST be 1 unless flagExternal is 1. If flagExternal is 1, it MUST be 0. | |
| flagDocProps | back to summary |
|---|---|
| public static final BitField flagDocProps A value that MUST be 0 if document properties are encrypted. The encryption of document properties is specified in section 2.3.5.4.
| |
| flagExternal | back to summary |
|---|---|
| public static final BitField flagExternal A value that MUST be 1 if extensible encryption is used. If this value is 1, the value of every other field in this structure MUST be 0.
| |
| FLAGS_MASKS | back to summary |
|---|---|
| private static final int[] FLAGS_MASKS | |
| FLAGS_NAMES | back to summary |
|---|---|
| private static final String[] FLAGS_NAMES | |
| header | back to summary |
|---|---|
| private EncryptionHeader header | |
| verifier | back to summary |
|---|---|
| private EncryptionVerifier verifier | |
| versionMajor | back to summary |
|---|---|
| private final int versionMajor | |
| versionMinor | back to summary |
|---|---|
| private final int versionMinor | |
| EncryptionInfo | back to summary |
|---|---|
| public EncryptionInfo(POIFSFileSystem fs) throws IOException Opens for decryption | |
| EncryptionInfo | back to summary |
|---|---|
| public EncryptionInfo(DirectoryNode dir) throws IOException Opens for decryption | |
| EncryptionInfo | back to summary |
|---|---|
| public EncryptionInfo(LittleEndianInput dis, EncryptionMode preferredEncryptionMode) throws IOException | |
| EncryptionInfo | back to summary |
|---|---|
| public EncryptionInfo(EncryptionMode encryptionMode) Prepares for encryption, using the given Encryption Mode, and all other parameters as default. | |
| EncryptionInfo | back to summary |
|---|---|
| public EncryptionInfo(EncryptionMode encryptionMode, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) Constructs an EncryptionInfo from scratch
| |
| EncryptionInfo | back to summary |
|---|---|
| public EncryptionInfo(EncryptionInfo other) | |
| copy | back to summary |
|---|---|
| public EncryptionInfo copy() | |
| getBuilder | back to summary |
|---|---|
| private static EncryptionInfoBuilder getBuilder(EncryptionMode encryptionMode) Create the builder instance
| |
| getDecryptor | back to summary |
|---|---|
| public Decryptor getDecryptor() | |
| getEncryptionFlags | back to summary |
|---|---|
| public int getEncryptionFlags() | |
| getEncryptionMode | back to summary |
|---|---|
| public EncryptionMode getEncryptionMode() | |
| getEncryptor | back to summary |
|---|---|
| public Encryptor getEncryptor() | |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getHeader | back to summary |
|---|---|
| public EncryptionHeader getHeader() | |
| getVerifier | back to summary |
|---|---|
| public EncryptionVerifier getVerifier() | |
| getVersionMajor | back to summary |
|---|---|
| public int getVersionMajor() | |
| getVersionMinor | back to summary |
|---|---|
| public int getVersionMinor() | |
| isDocPropsEncrypted | back to summary |
|---|---|
public boolean isDocPropsEncrypted()
| |
| setDecryptor | back to summary |
|---|---|
| public void setDecryptor(Decryptor decryptor) | |
| setEncryptor | back to summary |
|---|---|
| public void setEncryptor(Encryptor encryptor) | |
| setHeader | back to summary |
|---|---|
| public void setHeader(EncryptionHeader header) | |
| setVerifier | back to summary |
|---|---|
| public void setVerifier(EncryptionVerifier verifier) | |