org.apache.poi.poifs.crypt.standard
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
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionVerifier |
getAlgorithm, getChainingMode, getCipherAlgorithm, getCipherMode, getEncryptedKey, getEncryptedVerifier, getEncryptedVerifierHash, getHashAlgorithm, getSalt, getSpinCount, setChainingMode, setCipherAlgorithm, setEncryptedKey, setHashAlgorithm, setSpinCount |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardEncryptionVerifier
protected StandardEncryptionVerifier(LittleEndianInput is,
StandardEncryptionHeader header)
StandardEncryptionVerifier
protected StandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
setSalt
protected void setSalt(byte[] salt)
- Overrides:
setSalt
in class EncryptionVerifier
setEncryptedVerifier
protected void setEncryptedVerifier(byte[] encryptedVerifier)
- Overrides:
setEncryptedVerifier
in class EncryptionVerifier
setEncryptedVerifierHash
protected void setEncryptedVerifierHash(byte[] encryptedVerifierHash)
- Overrides:
setEncryptedVerifierHash
in class EncryptionVerifier
write
public void write(LittleEndianByteArrayOutputStream bos)
- Specified by:
write
in interface EncryptionRecord
getVerifierHashSize
protected int getVerifierHashSize()
clone
public StandardEncryptionVerifier clone()
throws java.lang.CloneNotSupportedException
- Overrides:
clone
in class EncryptionVerifier
- Throws:
java.lang.CloneNotSupportedException