Class StandardEncryptionVerifier
java.lang.Object
org.apache.poi.poifs.crypt.EncryptionVerifier
org.apache.poi.poifs.crypt.standard.StandardEncryptionVerifier
- All Implemented Interfaces:
Cloneable,EncryptionRecord
- Direct Known Subclasses:
CryptoAPIEncryptionVerifier
public class StandardEncryptionVerifier
extends EncryptionVerifier
implements EncryptionRecord, Cloneable
Used when checking if a key is valid for a document
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) protected -
Method Summary
Modifier and TypeMethodDescriptionclone()protected intprotected voidsetEncryptedVerifier(byte[] encryptedVerifier) protected voidsetEncryptedVerifierHash(byte[] encryptedVerifierHash) protected voidsetSalt(byte[] salt) voidMethods inherited from class org.apache.poi.poifs.crypt.EncryptionVerifier
getChainingMode, getCipherAlgorithm, getEncryptedKey, getEncryptedVerifier, getEncryptedVerifierHash, getHashAlgorithm, getSalt, getSpinCount, setChainingMode, setCipherAlgorithm, setEncryptedKey, setHashAlgorithm, setSpinCount
-
Constructor Details
-
StandardEncryptionVerifier
-
StandardEncryptionVerifier
protected StandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Details
-
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
- Specified by:
writein interfaceEncryptionRecord
-
getVerifierHashSize
protected int getVerifierHashSize() -
clone
- Overrides:
clonein classEncryptionVerifier- Throws:
CloneNotSupportedException
-