org.apache.poi.poifs.crypt
Class EncryptionVerifier

java.lang.Object
  extended by org.apache.poi.poifs.crypt.EncryptionVerifier
Direct Known Subclasses:
AgileEncryptionVerifier, StandardEncryptionVerifier

public abstract class EncryptionVerifier
extends java.lang.Object

Used when checking if a key is valid for a document


Constructor Summary
protected EncryptionVerifier()
           
 
Method Summary
 int getAlgorithm()
           
 java.lang.String getAlgorithmName()
          Deprecated. use getCipherAlgorithm().jceId
 ChainingMode getChainingMode()
           
 CipherAlgorithm getCipherAlgorithm()
           
 int getCipherMode()
           
 byte[] getEncryptedKey()
           
 byte[] getEncryptedVerifier()
           
 byte[] getEncryptedVerifierHash()
           
 HashAlgorithm getHashAlgorithm()
           
 byte[] getSalt()
           
 int getSpinCount()
           
 byte[] getVerifier()
          Deprecated. use getEncryptedVerifier()
 byte[] getVerifierHash()
          Deprecated. use getEnryptedVerifierHash
protected  void setChainingMode(ChainingMode chainingMode)
           
protected  void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)
           
protected  void setEncryptedKey(byte[] encryptedKey)
           
protected  void setEncryptedVerifier(byte[] encryptedVerifier)
           
protected  void setEncryptedVerifierHash(byte[] encryptedVerifierHash)
           
protected  void setHashAlgorithm(HashAlgorithm hashAlgorithm)
           
protected  void setSalt(byte[] salt)
           
protected  void setSpinCount(int spinCount)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionVerifier

protected EncryptionVerifier()
Method Detail

getSalt

public byte[] getSalt()

getVerifier

public byte[] getVerifier()
Deprecated. use getEncryptedVerifier()

The method name is misleading - you'll get the encrypted verifier, not the plain verifier


getEncryptedVerifier

public byte[] getEncryptedVerifier()

getVerifierHash

public byte[] getVerifierHash()
Deprecated. use getEnryptedVerifierHash

The method name is misleading - you'll get the encrypted verifier hash, not the plain verifier hash


getEncryptedVerifierHash

public byte[] getEncryptedVerifierHash()

getSpinCount

public int getSpinCount()

getCipherMode

public int getCipherMode()

getAlgorithm

public int getAlgorithm()

getAlgorithmName

public java.lang.String getAlgorithmName()
Deprecated. use getCipherAlgorithm().jceId


getEncryptedKey

public byte[] getEncryptedKey()

getCipherAlgorithm

public CipherAlgorithm getCipherAlgorithm()

getHashAlgorithm

public HashAlgorithm getHashAlgorithm()

getChainingMode

public ChainingMode getChainingMode()

setSalt

protected void setSalt(byte[] salt)

setEncryptedVerifier

protected void setEncryptedVerifier(byte[] encryptedVerifier)

setEncryptedVerifierHash

protected void setEncryptedVerifierHash(byte[] encryptedVerifierHash)

setEncryptedKey

protected void setEncryptedKey(byte[] encryptedKey)

setSpinCount

protected void setSpinCount(int spinCount)

setCipherAlgorithm

protected void setCipherAlgorithm(CipherAlgorithm cipherAlgorithm)

setChainingMode

protected void setChainingMode(ChainingMode chainingMode)

setHashAlgorithm

protected void setHashAlgorithm(HashAlgorithm hashAlgorithm)


Copyright 2014 The Apache Software Foundation or its licensors, as applicable.