Package org.apache.poi.poifs.crypt
Class EncryptionVerifier
- java.lang.Object
-
- org.apache.poi.poifs.crypt.EncryptionVerifier
-
- All Implemented Interfaces:
Duplicatable
,GenericRecord
- Direct Known Subclasses:
AgileEncryptionVerifier
,BinaryRC4EncryptionVerifier
,StandardEncryptionVerifier
,XOREncryptionVerifier
public abstract class EncryptionVerifier extends Object implements GenericRecord, Duplicatable
Used when checking if a key is valid for a document
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EncryptionVerifier()
protected
EncryptionVerifier(EncryptionVerifier other)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract EncryptionVerifier
copy()
ChainingMode
getChainingMode()
CipherAlgorithm
getCipherAlgorithm()
byte[]
getEncryptedKey()
byte[]
getEncryptedVerifier()
byte[]
getEncryptedVerifierHash()
Map<String,Supplier<?>>
getGenericProperties()
HashAlgorithm
getHashAlgorithm()
byte[]
getSalt()
int
getSpinCount()
void
setChainingMode(ChainingMode chainingMode)
void
setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
void
setEncryptedKey(byte[] encryptedKey)
void
setEncryptedVerifier(byte[] encryptedVerifier)
void
setEncryptedVerifierHash(byte[] encryptedVerifierHash)
void
setHashAlgorithm(HashAlgorithm hashAlgorithm)
void
setSalt(byte[] salt)
void
setSpinCount(int spinCount)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren, getGenericRecordType
-
-
-
-
Constructor Detail
-
EncryptionVerifier
protected EncryptionVerifier()
-
EncryptionVerifier
protected EncryptionVerifier(EncryptionVerifier other)
-
-
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
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 interfaceDuplicatable
- Returns:
- a deep copy of the implementing class / instance
-
getGenericProperties
public Map<String,Supplier<?>> getGenericProperties()
- Specified by:
getGenericProperties
in interfaceGenericRecord
-
-