org.apache.poi.poifs.crypt.agile
Class AgileEncryptionVerifier
java.lang.Object
org.apache.poi.poifs.crypt.EncryptionVerifier
org.apache.poi.poifs.crypt.agile.AgileEncryptionVerifier
public class AgileEncryptionVerifier
- extends EncryptionVerifier
Used when checking if a key is valid for a document
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionVerifier |
getAlgorithm, getAlgorithmName, getChainingMode, getCipherAlgorithm, getCipherMode, getEncryptedKey, getEncryptedVerifier, getEncryptedVerifierHash, getHashAlgorithm, getSalt, getSpinCount, getVerifier, getVerifierHash, setChainingMode, setCipherAlgorithm, setHashAlgorithm, setSpinCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgileEncryptionVerifier
public AgileEncryptionVerifier(java.lang.String descriptor)
AgileEncryptionVerifier
protected AgileEncryptionVerifier(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed)
AgileEncryptionVerifier
public AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
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
setEncryptedKey
protected void setEncryptedKey(byte[] encryptedKey)
- Overrides:
setEncryptedKey
in class EncryptionVerifier
addCertificate
public void addCertificate(java.security.cert.X509Certificate x509)
getCertificates
public java.util.List<AgileEncryptionVerifier.AgileCertificateEntry> getCertificates()
Copyright 2016 The Apache Software Foundation or
its licensors, as applicable.