com.healthmarketscience.jackcess.impl.office
Class EncryptionHeader

java.lang.Object
  extended by com.healthmarketscience.jackcess.impl.office.EncryptionHeader

public class EncryptionHeader
extends Object

Author:
James Ahlborn

Nested Class Summary
static class EncryptionHeader.CryptoAlgorithm
           
static class EncryptionHeader.HashAlgorithm
           
 
Field Summary
static int FAES_FLAG
           
static int FCRYPTO_API_FLAG
           
static int FDOC_PROPS_FLAG
           
static int FEXTERNAL_FLAG
           
static Charset UNICODE_CHARSET
           
 
Constructor Summary
EncryptionHeader(ByteBuffer buffer)
           
 
Method Summary
 EncryptionHeader.CryptoAlgorithm getCryptoAlgorithm()
           
 String getCspName()
           
 int getFlags()
           
 EncryptionHeader.HashAlgorithm getHashAlgorithm()
           
 int getKeySize()
           
 int getProviderType()
           
 int getSizeExtra()
           
static boolean isFlagSet(int flagsVal, int flagMask)
           
static EncryptionHeader read(ByteBuffer encProvBuf, Set<EncryptionHeader.CryptoAlgorithm> validCryptoAlgos, Set<EncryptionHeader.HashAlgorithm> validHashAlgos)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNICODE_CHARSET

public static final Charset UNICODE_CHARSET

FCRYPTO_API_FLAG

public static final int FCRYPTO_API_FLAG
See Also:
Constant Field Values

FDOC_PROPS_FLAG

public static final int FDOC_PROPS_FLAG
See Also:
Constant Field Values

FEXTERNAL_FLAG

public static final int FEXTERNAL_FLAG
See Also:
Constant Field Values

FAES_FLAG

public static final int FAES_FLAG
See Also:
Constant Field Values
Constructor Detail

EncryptionHeader

public EncryptionHeader(ByteBuffer buffer)
Method Detail

getFlags

public int getFlags()

getSizeExtra

public int getSizeExtra()

getCryptoAlgorithm

public EncryptionHeader.CryptoAlgorithm getCryptoAlgorithm()

getHashAlgorithm

public EncryptionHeader.HashAlgorithm getHashAlgorithm()

getKeySize

public int getKeySize()

getProviderType

public int getProviderType()

getCspName

public String getCspName()

read

public static EncryptionHeader read(ByteBuffer encProvBuf,
                                    Set<EncryptionHeader.CryptoAlgorithm> validCryptoAlgos,
                                    Set<EncryptionHeader.HashAlgorithm> validHashAlgos)

isFlagSet

public static boolean isFlagSet(int flagsVal,
                                int flagMask)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010-2015 Health Market Science. All Rights Reserved.