Package org.apache.poi.poifs.crypt
Class EncryptionHeader
- java.lang.Object
-
- org.apache.poi.poifs.crypt.EncryptionHeader
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
AgileEncryptionHeader
,BinaryRC4EncryptionHeader
,StandardEncryptionHeader
,XOREncryptionHeader
public abstract class EncryptionHeader extends java.lang.Object implements java.lang.Cloneable
Reads and processes OOXML Encryption Headers The constants are largely based on ZIP constants.
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALGORITHM_AES_128
static int
ALGORITHM_AES_192
static int
ALGORITHM_AES_256
static int
ALGORITHM_RC4
static int
HASH_NONE
static int
HASH_SHA1
static int
HASH_SHA256
static int
HASH_SHA384
static int
HASH_SHA512
static int
MODE_CBC
static int
MODE_CFB
static int
MODE_ECB
static int
PROVIDER_AES
static int
PROVIDER_RC4
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionHeader
clone()
int
getBlockSize()
ChainingMode
getChainingMode()
CipherAlgorithm
getCipherAlgorithm()
CipherProvider
getCipherProvider()
java.lang.String
getCspName()
int
getFlags()
HashAlgorithm
getHashAlgorithm()
byte[]
getKeySalt()
int
getKeySize()
int
getSizeExtra()
-
-
-
Field Detail
-
ALGORITHM_RC4
public static final int ALGORITHM_RC4
-
ALGORITHM_AES_128
public static final int ALGORITHM_AES_128
-
ALGORITHM_AES_192
public static final int ALGORITHM_AES_192
-
ALGORITHM_AES_256
public static final int ALGORITHM_AES_256
-
HASH_NONE
public static final int HASH_NONE
-
HASH_SHA1
public static final int HASH_SHA1
-
HASH_SHA256
public static final int HASH_SHA256
-
HASH_SHA384
public static final int HASH_SHA384
-
HASH_SHA512
public static final int HASH_SHA512
-
PROVIDER_RC4
public static final int PROVIDER_RC4
-
PROVIDER_AES
public static final int PROVIDER_AES
-
MODE_ECB
public static final int MODE_ECB
-
MODE_CBC
public static final int MODE_CBC
-
MODE_CFB
public static final int MODE_CFB
-
-
Method Detail
-
getChainingMode
public ChainingMode getChainingMode()
-
getFlags
public int getFlags()
-
getSizeExtra
public int getSizeExtra()
-
getCipherAlgorithm
public CipherAlgorithm getCipherAlgorithm()
-
getHashAlgorithm
public HashAlgorithm getHashAlgorithm()
-
getKeySize
public int getKeySize()
-
getBlockSize
public int getBlockSize()
-
getKeySalt
public byte[] getKeySalt()
-
getCipherProvider
public CipherProvider getCipherProvider()
-
getCspName
public java.lang.String getCspName()
-
clone
public EncryptionHeader clone() throws java.lang.CloneNotSupportedException
- Throws:
java.lang.CloneNotSupportedException
-
-