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

public Class StandardEncryptionVerifier

extends EncryptionVerifier
implements EncryptionRecord
Class Inheritance
All Implemented Interfaces
org.apache.poi.poifs.crypt.standard.EncryptionRecord
Known Direct Subclasses
org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptionVerifier
Imports
org.apache.poi.EncryptedDocumentException, org.apache.poi.poifs.crypt.ChainingMode, .CipherAlgorithm, .EncryptionVerifier, .HashAlgorithm, org.apache.poi.util.LittleEndianByteArrayOutputStream, .LittleEndianInput

Used when checking if a key is valid for a document

Field Summary

Modifier and TypeField and Description
private static final int
private final int

Constructor Summary

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

protected

Method Summary

Modifier and TypeMethod and Description
public StandardEncryptionVerifier
public int
public void
public void
public void
public void
Inherited from org.apache.poi.poifs.crypt.EncryptionVerifier:
getChainingModegetCipherAlgorithmgetEncryptedKeygetEncryptedVerifiergetEncryptedVerifierHashgetGenericPropertiesgetHashAlgorithmgetSaltgetSpinCountsetChainingModesetCipherAlgorithmsetEncryptedKeysetHashAlgorithmsetSpinCount

Field Detail

SPIN_COUNTback to summary
private static final int SPIN_COUNT
verifierHashSizeback to summary
private final int verifierHashSize

Constructor Detail

StandardEncryptionVerifierback to summary
protected StandardEncryptionVerifier(LittleEndianInput is, StandardEncryptionHeader header)
StandardEncryptionVerifierback to summary
protected StandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
StandardEncryptionVerifierback to summary
protected StandardEncryptionVerifier(StandardEncryptionVerifier other)

Method Detail

copyback to summary
public StandardEncryptionVerifier copy()

Implements abstract org.apache.poi.poifs.crypt.EncryptionVerifier.copy.

Implements org.apache.poi.common.Duplicatable.copy.

Returns:StandardEncryptionVerifier

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

a deep copy of the implementing class / instance

Annotations
@Override
getVerifierHashSizeback to summary
public int getVerifierHashSize()
setEncryptedVerifierback to summary
public void setEncryptedVerifier(byte[] encryptedVerifier)

Overrides org.apache.poi.poifs.crypt.EncryptionVerifier.setEncryptedVerifier.

Annotations
@Override
setEncryptedVerifierHashback to summary
public void setEncryptedVerifierHash(byte[] encryptedVerifierHash)

Overrides org.apache.poi.poifs.crypt.EncryptionVerifier.setEncryptedVerifierHash.

Annotations
@Override
setSaltback to summary
public void setSalt(byte[] salt)

Overrides org.apache.poi.poifs.crypt.EncryptionVerifier.setSalt.

Annotations
@Override
writeback to summary
public void write(LittleEndianByteArrayOutputStream bos)

Implements org.apache.poi.poifs.crypt.standard.EncryptionRecord.write.

Annotations
@Override