Top Description Fields Constructors Methods
org.apache.poi.poifs.crypt

public abstract Class EncryptionVerifier

extends Object
implements GenericRecord, Duplicatable
Class Inheritance
All Implemented Interfaces
org.apache.poi.common.Duplicatable, org.apache.poi.common.usermodel.GenericRecord
Known Direct Subclasses
org.apache.poi.poifs.crypt.agile.AgileEncryptionVerifier, org.apache.poi.poifs.crypt.binaryrc4.BinaryRC4EncryptionVerifier, org.apache.poi.poifs.crypt.standard.StandardEncryptionVerifier, org.apache.poi.poifs.crypt.xor.XOREncryptionVerifier
Imports
java.util.Collections, .LinkedHashMap, .Map, java.util.function.Supplier, org.apache.poi.common.Duplicatable, org.apache.poi.common.usermodel.GenericRecord

Used when checking if a key is valid for a document

Field Summary

Modifier and TypeField and Description
private ChainingMode
private CipherAlgorithm
private byte[]
private byte[]
private byte[]
private HashAlgorithm
private byte[]
private int

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public abstract EncryptionVerifier
public ChainingMode
public CipherAlgorithm
public byte[]
public byte[]
public byte[]
public Map<String, Supplier<?>>
public HashAlgorithm
public byte[]
public int
public void
public void
public void
setEncryptedKey(byte[] encryptedKey)

public void
setEncryptedVerifier(byte[] encryptedVerifier)

public void
setEncryptedVerifierHash(byte[] encryptedVerifierHash)

public void
public void
setSalt(byte[] salt)

public void
setSpinCount(int spinCount)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

chainingModeback to summary
private ChainingMode chainingMode
cipherAlgorithmback to summary
private CipherAlgorithm cipherAlgorithm
encryptedKeyback to summary
private byte[] encryptedKey
encryptedVerifierback to summary
private byte[] encryptedVerifier
encryptedVerifierHashback to summary
private byte[] encryptedVerifierHash
hashAlgorithmback to summary
private HashAlgorithm hashAlgorithm
saltback to summary
private byte[] salt
spinCountback to summary
private int spinCount

Constructor Detail

EncryptionVerifierback to summary
protected EncryptionVerifier()
EncryptionVerifierback to summary
protected EncryptionVerifier(EncryptionVerifier other)

Method Detail

copyback to summary
public abstract EncryptionVerifier copy()

Redeclares org.apache.poi.common.Duplicatable.copy.

Returns:EncryptionVerifier

Doc from org.apache.poi.common.Duplicatable.copy.

a deep copy of the implementing class / instance

getChainingModeback to summary
public ChainingMode getChainingMode()
getCipherAlgorithmback to summary
public CipherAlgorithm getCipherAlgorithm()
getEncryptedKeyback to summary
public byte[] getEncryptedKey()
getEncryptedVerifierback to summary
public byte[] getEncryptedVerifier()
getEncryptedVerifierHashback to summary
public byte[] getEncryptedVerifierHash()
getGenericPropertiesback to summary
public Map<String, Supplier<?>> getGenericProperties()

Implements org.apache.poi.common.usermodel.GenericRecord.getGenericProperties.

Annotations
@Override
getHashAlgorithmback to summary
public HashAlgorithm getHashAlgorithm()
getSaltback to summary
public byte[] getSalt()
getSpinCountback to summary
public int getSpinCount()
setChainingModeback to summary
public void setChainingMode(ChainingMode chainingMode)
setCipherAlgorithmback to summary
public void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
setEncryptedKeyback to summary
public void setEncryptedKey(byte[] encryptedKey)
setEncryptedVerifierback to summary
public void setEncryptedVerifier(byte[] encryptedVerifier)
setEncryptedVerifierHashback to summary
public void setEncryptedVerifierHash(byte[] encryptedVerifierHash)
setHashAlgorithmback to summary
public void setHashAlgorithm(HashAlgorithm hashAlgorithm)
setSaltback to summary
public void setSalt(byte[] salt)
setSpinCountback to summary
public void setSpinCount(int spinCount)