|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.poifs.crypt.EncryptionInfo
public class EncryptionInfo
Field Summary | |
---|---|
static BitField |
flagAES
A value that MUST be 1 if the protected content is an ECMA-376 document ECMA-376. |
static BitField |
flagCryptoAPI
A flag that specifies whether CryptoAPI RC4 or ECMA-376 encryption ECMA-376 is used. |
static BitField |
flagDocProps
A value that MUST be 0 if document properties are encrypted. |
static BitField |
flagExternal
A value that MUST be 1 if extensible encryption is used. |
Constructor Summary | |
---|---|
EncryptionInfo(DirectoryNode dir)
|
|
EncryptionInfo(DirectoryNode dir,
EncryptionMode encryptionMode)
Deprecated. use constructor without dir parameter |
|
EncryptionInfo(DirectoryNode dir,
EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
Deprecated. use constructor without dir parameter |
|
EncryptionInfo(EncryptionMode encryptionMode)
|
|
EncryptionInfo(EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
Constructs an EncryptionInfo from scratch |
|
EncryptionInfo(LittleEndianInput dis,
boolean isCryptoAPI)
|
|
EncryptionInfo(NPOIFSFileSystem fs)
|
|
EncryptionInfo(NPOIFSFileSystem fs,
EncryptionMode encryptionMode)
Deprecated. use constructor without fs parameter |
|
EncryptionInfo(NPOIFSFileSystem fs,
EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
Deprecated. use constructor without fs parameter |
|
EncryptionInfo(POIFSFileSystem fs)
|
|
EncryptionInfo(POIFSFileSystem fs,
EncryptionMode encryptionMode)
Deprecated. use constructor without fs parameter |
|
EncryptionInfo(POIFSFileSystem fs,
EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
Deprecated. use constructor without fs parameter |
Method Summary | |
---|---|
protected static EncryptionInfoBuilder |
getBuilder(EncryptionMode encryptionMode)
|
Decryptor |
getDecryptor()
|
int |
getEncryptionFlags()
|
Encryptor |
getEncryptor()
|
EncryptionHeader |
getHeader()
|
EncryptionVerifier |
getVerifier()
|
int |
getVersionMajor()
|
int |
getVersionMinor()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static BitField flagCryptoAPI
public static BitField flagDocProps
public static BitField flagExternal
public static BitField flagAES
Constructor Detail |
---|
public EncryptionInfo(POIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public EncryptionInfo(NPOIFSFileSystem fs) throws java.io.IOException
java.io.IOException
public EncryptionInfo(DirectoryNode dir) throws java.io.IOException
java.io.IOException
public EncryptionInfo(LittleEndianInput dis, boolean isCryptoAPI) throws java.io.IOException
java.io.IOException
@Deprecated public EncryptionInfo(POIFSFileSystem fs, EncryptionMode encryptionMode)
@Deprecated public EncryptionInfo(NPOIFSFileSystem fs, EncryptionMode encryptionMode)
@Deprecated public EncryptionInfo(DirectoryNode dir, EncryptionMode encryptionMode)
@Deprecated public EncryptionInfo(POIFSFileSystem fs, EncryptionMode encryptionMode, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
@Deprecated public EncryptionInfo(NPOIFSFileSystem fs, EncryptionMode encryptionMode, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
@Deprecated public EncryptionInfo(DirectoryNode dir, EncryptionMode encryptionMode, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
public EncryptionInfo(EncryptionMode encryptionMode)
public EncryptionInfo(EncryptionMode encryptionMode, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
encryptionMode
- see EncryptionMode
for values, EncryptionMode.cryptoAPI
is for
internal use only, as it's record basedcipherAlgorithm
- hashAlgorithm
- keyBits
- blockSize
- chainingMode
-
EncryptedDocumentException
- if the given parameters mismatch, e.g. only certain combinations
of keyBits, blockSize are allowed for a given CipherAlgorithm
Method Detail |
---|
protected static EncryptionInfoBuilder getBuilder(EncryptionMode encryptionMode) throws java.lang.ClassNotFoundException, java.lang.IllegalAccessException, java.lang.InstantiationException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
public int getVersionMajor()
public int getVersionMinor()
public int getEncryptionFlags()
public EncryptionHeader getHeader()
public EncryptionVerifier getVerifier()
public Decryptor getDecryptor()
public Encryptor getEncryptor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |