Class StandardEncryptionVerifier
- java.lang.Object
-
- org.apache.poi.poifs.crypt.EncryptionVerifier
-
- org.apache.poi.poifs.crypt.standard.StandardEncryptionVerifier
-
- All Implemented Interfaces:
java.lang.Cloneable,EncryptionRecord
- Direct Known Subclasses:
CryptoAPIEncryptionVerifier
public class StandardEncryptionVerifier extends EncryptionVerifier implements EncryptionRecord, java.lang.Cloneable
Used when checking if a key is valid for a document
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)protectedStandardEncryptionVerifier(LittleEndianInput is, StandardEncryptionHeader header)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardEncryptionVerifierclone()protected intgetVerifierHashSize()protected voidsetEncryptedVerifier(byte[] encryptedVerifier)protected voidsetEncryptedVerifierHash(byte[] encryptedVerifierHash)protected voidsetSalt(byte[] salt)voidwrite(LittleEndianByteArrayOutputStream bos)-
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionVerifier
getChainingMode, getCipherAlgorithm, getEncryptedKey, getEncryptedVerifier, getEncryptedVerifierHash, getHashAlgorithm, getSalt, getSpinCount, setChainingMode, setCipherAlgorithm, setEncryptedKey, setHashAlgorithm, setSpinCount
-
-
-
-
Constructor Detail
-
StandardEncryptionVerifier
protected StandardEncryptionVerifier(LittleEndianInput is, StandardEncryptionHeader header)
-
StandardEncryptionVerifier
protected StandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Detail
-
setSalt
protected void setSalt(byte[] salt)
- Overrides:
setSaltin classEncryptionVerifier
-
setEncryptedVerifier
protected void setEncryptedVerifier(byte[] encryptedVerifier)
- Overrides:
setEncryptedVerifierin classEncryptionVerifier
-
setEncryptedVerifierHash
protected void setEncryptedVerifierHash(byte[] encryptedVerifierHash)
- Overrides:
setEncryptedVerifierHashin classEncryptionVerifier
-
write
public void write(LittleEndianByteArrayOutputStream bos)
- Specified by:
writein interfaceEncryptionRecord
-
getVerifierHashSize
protected int getVerifierHashSize()
-
clone
public StandardEncryptionVerifier clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classEncryptionVerifier- Throws:
java.lang.CloneNotSupportedException
-
-