Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Constructor Summary
`protected` | `StandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)`
`protected` | `StandardEncryptionVerifier(LittleEndianInput is, StandardEncryptionHeader header)`

Method Summary
`StandardEncryptionVerifier` | `clone()`
`protected int` | `getVerifierHashSize()`
`protected void` | `setEncryptedVerifier(byte[] encryptedVerifier)`
`protected void` | `setEncryptedVerifierHash(byte[] encryptedVerifierHash)`
`protected void` | `setSalt(byte[] salt)`
`void` | `write(LittleEndianByteArrayOutputStream bos)`

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`

Constructor Detail

### StandardEncryptionVerifier

    protected StandardEncryptionVerifier(LittleEndianInput is,
                                         StandardEncryptionHeader header)

### StandardEncryptionVerifier

    protected StandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm,
                                         HashAlgorithm hashAlgorithm,
                                         int keyBits,
                                         int blockSize,
                                         ChainingMode chainingMode)

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.