Class AgileEncryptionVerifier
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.EncryptionVerifier
org.docx4j.org.apache.poi.poifs.crypt.agile.AgileEncryptionVerifier
public class AgileEncryptionVerifier extends EncryptionVerifier
Used when checking if a key is valid for a document
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAgileEncryptionVerifier.AgileCertificateEntry -
Constructor Summary
Constructors Modifier Constructor Description AgileEncryptionVerifier(java.lang.String descriptor)protectedAgileEncryptionVerifier(CTEncryption ed)AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) -
Method Summary
Modifier and Type Method Description voidaddCertificate(java.security.cert.X509Certificate x509)java.util.List<AgileEncryptionVerifier.AgileCertificateEntry>getCertificates()protected voidsetEncryptedKey(byte[] encryptedKey)protected voidsetEncryptedVerifier(byte[] encryptedVerifier)protected voidsetEncryptedVerifierHash(byte[] encryptedVerifierHash)protected voidsetSalt(byte[] salt)Methods inherited from class org.docx4j.org.apache.poi.poifs.crypt.EncryptionVerifier
getAlgorithm, getAlgorithmName, getChainingMode, getCipherAlgorithm, getCipherMode, getEncryptedKey, getEncryptedVerifier, getEncryptedVerifierHash, getHashAlgorithm, getSalt, getSpinCount, getVerifier, getVerifierHash, setChainingMode, setCipherAlgorithm, setHashAlgorithm, setSpinCountMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
AgileEncryptionVerifier
public AgileEncryptionVerifier(java.lang.String descriptor) -
AgileEncryptionVerifier
-
AgileEncryptionVerifier
public AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
-
-
Method Details
-
setSalt
protected void setSalt(byte[] salt)- Overrides:
setSaltin classEncryptionVerifier
-
setEncryptedVerifier
protected void setEncryptedVerifier(byte[] encryptedVerifier)- Overrides:
setEncryptedVerifierin classEncryptionVerifier
-
setEncryptedVerifierHash
protected void setEncryptedVerifierHash(byte[] encryptedVerifierHash)- Overrides:
setEncryptedVerifierHashin classEncryptionVerifier
-
setEncryptedKey
protected void setEncryptedKey(byte[] encryptedKey)- Overrides:
setEncryptedKeyin classEncryptionVerifier
-
addCertificate
public void addCertificate(java.security.cert.X509Certificate x509) -
getCertificates
-