Class EncryptionVerifier
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.EncryptionVerifier
- Direct Known Subclasses:
AgileEncryptionVerifier,BinaryRC4EncryptionVerifier,StandardEncryptionVerifier
public abstract class EncryptionVerifier
extends java.lang.Object
Used when checking if a key is valid for a document
-
Constructor Summary
Constructors Modifier Constructor Description protectedEncryptionVerifier() -
Method Summary
Modifier and Type Method Description intgetAlgorithm()java.lang.StringgetAlgorithmName()Deprecated.use getCipherAlgorithm().jceIdChainingModegetChainingMode()CipherAlgorithmgetCipherAlgorithm()intgetCipherMode()byte[]getEncryptedKey()byte[]getEncryptedVerifier()byte[]getEncryptedVerifierHash()HashAlgorithmgetHashAlgorithm()byte[]getSalt()intgetSpinCount()byte[]getVerifier()Deprecated.use getEncryptedVerifier()byte[]getVerifierHash()Deprecated.use getEnryptedVerifierHashprotected voidsetChainingMode(ChainingMode chainingMode)protected voidsetCipherAlgorithm(CipherAlgorithm cipherAlgorithm)protected voidsetEncryptedKey(byte[] encryptedKey)protected voidsetEncryptedVerifier(byte[] encryptedVerifier)protected voidsetEncryptedVerifierHash(byte[] encryptedVerifierHash)protected voidsetHashAlgorithm(HashAlgorithm hashAlgorithm)protected voidsetSalt(byte[] salt)protected voidsetSpinCount(int spinCount)
-
Constructor Details
-
EncryptionVerifier
protected EncryptionVerifier()
-
-
Method Details
-
getSalt
public byte[] getSalt() -
getVerifier
@Deprecated public byte[] getVerifier()Deprecated.use getEncryptedVerifier()The method name is misleading - you'll get the encrypted verifier, not the plain verifier -
getEncryptedVerifier
public byte[] getEncryptedVerifier() -
getVerifierHash
@Deprecated public byte[] getVerifierHash()Deprecated.use getEnryptedVerifierHashThe method name is misleading - you'll get the encrypted verifier hash, not the plain verifier hash -
getEncryptedVerifierHash
public byte[] getEncryptedVerifierHash() -
getSpinCount
public int getSpinCount() -
getCipherMode
public int getCipherMode() -
getAlgorithm
public int getAlgorithm() -
getAlgorithmName
@Deprecated public java.lang.String getAlgorithmName()Deprecated.use getCipherAlgorithm().jceId -
getEncryptedKey
public byte[] getEncryptedKey() -
getCipherAlgorithm
-
getHashAlgorithm
-
getChainingMode
-
setSalt
protected void setSalt(byte[] salt) -
setEncryptedVerifier
protected void setEncryptedVerifier(byte[] encryptedVerifier) -
setEncryptedVerifierHash
protected void setEncryptedVerifierHash(byte[] encryptedVerifierHash) -
setEncryptedKey
protected void setEncryptedKey(byte[] encryptedKey) -
setSpinCount
protected void setSpinCount(int spinCount) -
setCipherAlgorithm
-
setChainingMode
-
setHashAlgorithm
-