Class EncryptionVerifier

java.lang.Object
org.apache.poi.poifs.crypt.EncryptionVerifier
All Implemented Interfaces:
org.apache.poi.common.Duplicatable, GenericRecord
Direct Known Subclasses:
AgileEncryptionVerifier, BinaryRC4EncryptionVerifier, StandardEncryptionVerifier, XOREncryptionVerifier

public abstract class EncryptionVerifier extends Object implements GenericRecord, org.apache.poi.common.Duplicatable
Used when checking if a key is valid for a document
  • Method Details

    • 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

      public void setSalt(byte[] salt)
    • setEncryptedVerifier

      public void setEncryptedVerifier(byte[] encryptedVerifier)
    • setEncryptedVerifierHash

      public void setEncryptedVerifierHash(byte[] encryptedVerifierHash)
    • setEncryptedKey

      public void setEncryptedKey(byte[] encryptedKey)
    • setSpinCount

      public void setSpinCount(int spinCount)
    • setCipherAlgorithm

      public void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
    • setChainingMode

      public void setChainingMode(ChainingMode chainingMode)
    • setHashAlgorithm

      public void setHashAlgorithm(HashAlgorithm hashAlgorithm)
    • copy

      public abstract EncryptionVerifier copy()
      Specified by:
      copy in interface org.apache.poi.common.Duplicatable
    • getGenericProperties

      public Map<String,Supplier<?>> getGenericProperties()
      Specified by:
      getGenericProperties in interface GenericRecord