|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.poifs.crypt.EncryptionVerifier
org.apache.poi.poifs.crypt.agile.AgileEncryptionVerifier
public class AgileEncryptionVerifier
Used when checking if a key is valid for a document
Nested Class Summary | |
---|---|
static class |
AgileEncryptionVerifier.AgileCertificateEntry
|
Constructor Summary | |
---|---|
|
AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
|
protected |
AgileEncryptionVerifier(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed)
|
|
AgileEncryptionVerifier(java.lang.String descriptor)
|
Method Summary | |
---|---|
void |
addCertificate(java.security.cert.X509Certificate x509)
|
AgileEncryptionVerifier |
clone()
|
int |
getBlockSize()
The blockSize (in bytes) of the verifier data. |
java.util.List<AgileEncryptionVerifier.AgileCertificateEntry> |
getCertificates()
|
int |
getKeySize()
The keysize (in bits) of the verifier data. |
protected void |
setBlockSize(int blockSize)
Sets the blockSize (in bytes) of the verifier |
protected void |
setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
|
protected void |
setEncryptedKey(byte[] encryptedKey)
|
protected void |
setEncryptedVerifier(byte[] encryptedVerifier)
|
protected void |
setEncryptedVerifierHash(byte[] encryptedVerifierHash)
|
protected void |
setKeySize(int keyBits)
Sets the keysize (in bits) of the verifier |
protected void |
setSalt(byte[] salt)
|
Methods inherited from class org.apache.poi.poifs.crypt.EncryptionVerifier |
---|
getAlgorithm, getChainingMode, getCipherAlgorithm, getCipherMode, getEncryptedKey, getEncryptedVerifier, getEncryptedVerifierHash, getHashAlgorithm, getSalt, getSpinCount, setChainingMode, setHashAlgorithm, setSpinCount |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AgileEncryptionVerifier(java.lang.String descriptor)
protected AgileEncryptionVerifier(com.microsoft.schemas.office.x2006.encryption.EncryptionDocument ed)
public AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
Method Detail |
---|
protected void setSalt(byte[] salt)
setSalt
in class EncryptionVerifier
protected void setEncryptedVerifier(byte[] encryptedVerifier)
setEncryptedVerifier
in class EncryptionVerifier
protected void setEncryptedVerifierHash(byte[] encryptedVerifierHash)
setEncryptedVerifierHash
in class EncryptionVerifier
protected void setEncryptedKey(byte[] encryptedKey)
setEncryptedKey
in class EncryptionVerifier
public void addCertificate(java.security.cert.X509Certificate x509)
public java.util.List<AgileEncryptionVerifier.AgileCertificateEntry> getCertificates()
public AgileEncryptionVerifier clone() throws java.lang.CloneNotSupportedException
clone
in class EncryptionVerifier
java.lang.CloneNotSupportedException
public int getKeySize()
public int getBlockSize()
protected void setKeySize(int keyBits)
keyBits
- the keysize (in bits)protected void setBlockSize(int blockSize)
blockSize
- the blockSize (in bytes)protected final void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
setCipherAlgorithm
in class EncryptionVerifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |