public class EncryptionHeader
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EncryptionHeader.CryptoAlgorithm |
static class |
EncryptionHeader.HashAlgorithm |
| Modifier and Type | Field and Description |
|---|---|
private EncryptionHeader.CryptoAlgorithm |
_cryptoAlg |
private java.lang.String |
_cspName |
private int |
_flags |
private EncryptionHeader.HashAlgorithm |
_hashAlg |
private int |
_keySize |
private int |
_providerType |
private int |
_sizeExtra |
private static int |
ALGID_AES_128 |
private static int |
ALGID_AES_192 |
private static int |
ALGID_AES_256 |
private static int |
ALGID_FLAGS |
private static int |
ALGID_RC4 |
private static java.lang.String |
CSP_BASE_STRING |
static int |
FAES_FLAG |
static int |
FCRYPTO_API_FLAG |
static int |
FDOC_PROPS_FLAG |
static int |
FEXTERNAL_FLAG |
private static int |
HASHALGID_FLAGS |
private static int |
HASHALGID_SHA1 |
private static int |
RC4_BASE_DEFAULT_KEY_SIZE |
private static int |
RC4_STRONG_DEFAULT_KEY_SIZE |
static java.nio.charset.Charset |
UNICODE_CHARSET |
| Constructor and Description |
|---|
EncryptionHeader(java.nio.ByteBuffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
EncryptionHeader.CryptoAlgorithm |
getCryptoAlgorithm() |
java.lang.String |
getCspName() |
int |
getFlags() |
EncryptionHeader.HashAlgorithm |
getHashAlgorithm() |
int |
getKeySize() |
int |
getProviderType() |
int |
getSizeExtra() |
static boolean |
isFlagSet(int flagsVal,
int flagMask) |
private static EncryptionHeader.CryptoAlgorithm |
parseCryptoAlgorithm(int algId,
int flags) |
private static EncryptionHeader.HashAlgorithm |
parseHashAlgorithm(int algIdHash,
int flags) |
private static int |
parseKeySize(int keySize,
EncryptionHeader.CryptoAlgorithm cryptoAlg,
java.lang.String cspName) |
static EncryptionHeader |
read(java.nio.ByteBuffer encProvBuf,
java.util.Set<EncryptionHeader.CryptoAlgorithm> validCryptoAlgos,
java.util.Set<EncryptionHeader.HashAlgorithm> validHashAlgos) |
private static java.lang.String |
readCspName(java.nio.ByteBuffer buffer) |
java.lang.String |
toString() |
public static final java.nio.charset.Charset UNICODE_CHARSET
public static final int FCRYPTO_API_FLAG
public static final int FDOC_PROPS_FLAG
public static final int FEXTERNAL_FLAG
public static final int FAES_FLAG
private static final int ALGID_FLAGS
private static final int ALGID_RC4
private static final int ALGID_AES_128
private static final int ALGID_AES_192
private static final int ALGID_AES_256
private static final int HASHALGID_FLAGS
private static final int HASHALGID_SHA1
private static final java.lang.String CSP_BASE_STRING
private static final int RC4_BASE_DEFAULT_KEY_SIZE
private static final int RC4_STRONG_DEFAULT_KEY_SIZE
private final int _flags
private final int _sizeExtra
private final EncryptionHeader.CryptoAlgorithm _cryptoAlg
private final EncryptionHeader.HashAlgorithm _hashAlg
private final int _keySize
private final int _providerType
private final java.lang.String _cspName
public int getFlags()
public int getSizeExtra()
public EncryptionHeader.CryptoAlgorithm getCryptoAlgorithm()
public EncryptionHeader.HashAlgorithm getHashAlgorithm()
public int getKeySize()
public int getProviderType()
public java.lang.String getCspName()
public static EncryptionHeader read(java.nio.ByteBuffer encProvBuf, java.util.Set<EncryptionHeader.CryptoAlgorithm> validCryptoAlgos, java.util.Set<EncryptionHeader.HashAlgorithm> validHashAlgos)
private static EncryptionHeader.CryptoAlgorithm parseCryptoAlgorithm(int algId, int flags)
private static EncryptionHeader.HashAlgorithm parseHashAlgorithm(int algIdHash, int flags)
private static int parseKeySize(int keySize,
EncryptionHeader.CryptoAlgorithm cryptoAlg,
java.lang.String cspName)
private static java.lang.String readCspName(java.nio.ByteBuffer buffer)
public static boolean isFlagSet(int flagsVal,
int flagMask)
public java.lang.String toString()
toString in class java.lang.Object