Class EncryptionHeader
- java.lang.Object
-
- com.healthmarketscience.jackcess.crypt.impl.office.EncryptionHeader
-
public class EncryptionHeader extends Object
- Author:
- James Ahlborn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEncryptionHeader.CryptoAlgorithmstatic classEncryptionHeader.HashAlgorithm
-
Field Summary
Fields Modifier and Type Field Description static intFAES_FLAGstatic intFCRYPTO_API_FLAGstatic intFDOC_PROPS_FLAGstatic intFEXTERNAL_FLAGstatic CharsetUNICODE_CHARSET
-
Constructor Summary
Constructors Constructor Description EncryptionHeader(ByteBuffer buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EncryptionHeader.CryptoAlgorithmgetCryptoAlgorithm()StringgetCspName()intgetFlags()EncryptionHeader.HashAlgorithmgetHashAlgorithm()intgetKeySize()intgetProviderType()intgetSizeExtra()static booleanisFlagSet(int flagsVal, int flagMask)static EncryptionHeaderread(ByteBuffer encProvBuf, Set<EncryptionHeader.CryptoAlgorithm> validCryptoAlgos, Set<EncryptionHeader.HashAlgorithm> validHashAlgos)StringtoString()
-
-
-
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)
-
-