Package org.apache.poi.poifs.crypt.agile
Class AgileEncryptionVerifier
- java.lang.Object
 - 
- org.apache.poi.poifs.crypt.EncryptionVerifier
 - 
- org.apache.poi.poifs.crypt.agile.AgileEncryptionVerifier
 
 
 
- 
- All Implemented Interfaces:
 java.lang.Cloneable
public class AgileEncryptionVerifier extends EncryptionVerifier implements java.lang.Cloneable
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 Constructor Description AgileEncryptionVerifier(java.lang.String descriptor)AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCertificate(java.security.cert.X509Certificate x509)AgileEncryptionVerifierclone()intgetBlockSize()The blockSize (in bytes) of the verifier data.java.util.List<AgileEncryptionVerifier.AgileCertificateEntry>getCertificates()intgetKeySize()The keysize (in bits) of the verifier data.- 
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionVerifier
getChainingMode, getCipherAlgorithm, getEncryptedKey, getEncryptedVerifier, getEncryptedVerifierHash, getHashAlgorithm, getSalt, getSpinCount 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
AgileEncryptionVerifier
public AgileEncryptionVerifier(java.lang.String descriptor)
 
- 
AgileEncryptionVerifier
public AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
 
 - 
 
- 
Method Detail
- 
addCertificate
public void addCertificate(java.security.cert.X509Certificate x509)
 
- 
getCertificates
public java.util.List<AgileEncryptionVerifier.AgileCertificateEntry> getCertificates()
 
- 
clone
public AgileEncryptionVerifier clone() throws java.lang.CloneNotSupportedException
- Overrides:
 clonein classEncryptionVerifier- Throws:
 java.lang.CloneNotSupportedException
 
- 
getKeySize
public int getKeySize()
The keysize (in bits) of the verifier data. This usually equals the keysize of the header, but only on a few exceptions, like files generated by Office for Mac, can be different.- Returns:
 - the keysize (in bits) of the verifier.
 
 
- 
getBlockSize
public int getBlockSize()
The blockSize (in bytes) of the verifier data. This usually equals the blocksize of the header.- Returns:
 - the blockSize (in bytes) of the verifier,
 
 
 - 
 
 -