Package org.apache.poi.poifs.crypt
Class EncryptionVerifier
- java.lang.Object
-
- org.apache.poi.poifs.crypt.EncryptionVerifier
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
AgileEncryptionVerifier,BinaryRC4EncryptionVerifier,StandardEncryptionVerifier,XOREncryptionVerifier
public abstract class EncryptionVerifier extends java.lang.Object implements java.lang.CloneableUsed when checking if a key is valid for a document
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEncryptionVerifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionVerifierclone()ChainingModegetChainingMode()CipherAlgorithmgetCipherAlgorithm()byte[]getEncryptedKey()byte[]getEncryptedVerifier()byte[]getEncryptedVerifierHash()HashAlgorithmgetHashAlgorithm()byte[]getSalt()intgetSpinCount()protected 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)
-
-
-
Method Detail
-
getSalt
public byte[] getSalt()
-
getEncryptedVerifier
public byte[] getEncryptedVerifier()
-
getEncryptedVerifierHash
public byte[] getEncryptedVerifierHash()
-
getSpinCount
public int getSpinCount()
-
getEncryptedKey
public byte[] getEncryptedKey()
-
getCipherAlgorithm
public CipherAlgorithm getCipherAlgorithm()
-
getHashAlgorithm
public HashAlgorithm getHashAlgorithm()
-
getChainingMode
public ChainingMode 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
protected void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
-
setChainingMode
protected void setChainingMode(ChainingMode chainingMode)
-
setHashAlgorithm
protected void setHashAlgorithm(HashAlgorithm hashAlgorithm)
-
clone
public EncryptionVerifier clone() throws java.lang.CloneNotSupportedException
- Overrides:
clonein classjava.lang.Object- Throws:
java.lang.CloneNotSupportedException
-
-