Package org.apache.poi.poifs.crypt.agile
Class AgileEncryptionHeader
- java.lang.Object
-
- org.apache.poi.poifs.crypt.EncryptionHeader
-
- org.apache.poi.poifs.crypt.agile.AgileEncryptionHeader
-
- All Implemented Interfaces:
java.lang.Cloneable
public class AgileEncryptionHeader extends EncryptionHeader implements java.lang.Cloneable
-
-
Field Summary
-
Fields inherited from class org.apache.poi.poifs.crypt.EncryptionHeader
ALGORITHM_AES_128, ALGORITHM_AES_192, ALGORITHM_AES_256, ALGORITHM_RC4, HASH_NONE, HASH_SHA1, HASH_SHA256, HASH_SHA384, HASH_SHA512, MODE_CBC, MODE_CFB, MODE_ECB, PROVIDER_AES, PROVIDER_RC4
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AgileEncryptionHeader(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed)
AgileEncryptionHeader(java.lang.String descriptor)
AgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AgileEncryptionHeader
clone()
byte[]
getEncryptedHmacKey()
byte[]
getEncryptedHmacValue()
protected void
setEncryptedHmacKey(byte[] encryptedHmacKey)
protected void
setEncryptedHmacValue(byte[] encryptedHmacValue)
protected void
setKeySalt(byte[] salt)
-
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionHeader
getBlockSize, getChainingMode, getCipherAlgorithm, getCipherProvider, getCspName, getFlags, getHashAlgorithm, getKeySalt, getKeySize, getSizeExtra, setBlockSize, setChainingMode, setCipherAlgorithm, setCipherProvider, setCspName, setFlags, setHashAlgorithm, setKeySize, setSizeExtra
-
-
-
-
Constructor Detail
-
AgileEncryptionHeader
public AgileEncryptionHeader(java.lang.String descriptor)
-
AgileEncryptionHeader
protected AgileEncryptionHeader(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed)
-
AgileEncryptionHeader
public AgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Detail
-
setKeySalt
protected void setKeySalt(byte[] salt)
- Overrides:
setKeySalt
in classEncryptionHeader
-
getEncryptedHmacKey
public byte[] getEncryptedHmacKey()
-
setEncryptedHmacKey
protected void setEncryptedHmacKey(byte[] encryptedHmacKey)
-
getEncryptedHmacValue
public byte[] getEncryptedHmacValue()
-
setEncryptedHmacValue
protected void setEncryptedHmacValue(byte[] encryptedHmacValue)
-
clone
public AgileEncryptionHeader clone() throws java.lang.CloneNotSupportedException
- Overrides:
clone
in classEncryptionHeader
- Throws:
java.lang.CloneNotSupportedException
-
-