Modifier and Type | Method and Description |
---|---|
void |
ProtectDocument.restrictEditing(STDocProtect editValue,
String password,
HashAlgorithm hashAlgo)
Enforces the protection with the option specified by passed editValue, password, and
HashAlgorithm for the password.
|
void |
ProtectDocument.restrictFormatting(List<String> allowedStyleNames,
boolean removedNotAllowedFormatting,
boolean autoFormatOverride,
boolean styleLockTheme,
boolean styleLockQFSet,
String password,
HashAlgorithm hashAlgo)
Restrict allowed formatting to specified styles.
|
void |
ProtectWorkbook.setSheetProtection(CTSheetProtection sheetProtection,
String password,
HashAlgorithm hashAlgo)
Enforces the protection passed in sheetProtection, with the specified password, and
HashAlgorithm for the password.
|
void |
ProtectWorkbook.setWorkbookProtection(String password,
HashAlgorithm hashAlgo,
boolean lockRevision,
boolean lockStructure,
boolean lockWindows)
Enforce Workbook Protection, with the specified password,
using hashAlgo.
|
Modifier and Type | Method and Description |
---|---|
void |
DocumentSettingsPart.protectRestrictEditing(STDocProtect editValue,
String password,
HashAlgorithm hashAlgo)
Enforces the protection with the option specified by passed editValue, password, and
HashAlgorithm for the password.
|
void |
DocumentSettingsPart.protectRestrictFormatting(boolean autoFormatOverride,
boolean styleLockTheme,
boolean styleLockQFSet,
String password,
HashAlgorithm hashAlgo)
Restrict allowed formatting to specified styles.
|
Modifier and Type | Method and Description |
---|---|
static HashAlgorithm |
HashAlgorithm.fromEcmaId(int ecmaId) |
static HashAlgorithm |
HashAlgorithm.fromEcmaId(String ecmaString) |
static HashAlgorithm |
HashAlgorithm.fromString(String string) |
HashAlgorithm |
EncryptionVerifier.getHashAlgorithm() |
HashAlgorithm |
EncryptionHeader.getHashAlgorithmEx() |
static HashAlgorithm |
HashAlgorithm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HashAlgorithm[] |
HashAlgorithm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
CryptoFunctions.generateIv(HashAlgorithm hashAlgorithm,
byte[] salt,
byte[] blockKey,
int blockSize)
2.3.4.12 Initialization Vector Generation (Agile Encryption)
Initialization vectors are used in all cases for agile encryption.
|
static byte[] |
CryptoFunctions.generateKey(byte[] passwordHash,
HashAlgorithm hashAlgorithm,
byte[] blockKey,
int keySize)
2.3.4.11 Encryption Key Generation (Agile Encryption)
...
|
static Mac |
CryptoFunctions.getMac(HashAlgorithm hashAlgorithm) |
static MessageDigest |
CryptoFunctions.getMessageDigest(HashAlgorithm hashAlgorithm) |
static byte[] |
CryptoFunctions.hashPassword(String password,
HashAlgorithm hashAlgorithm,
byte[] salt,
int spinCount)
2.3.4.7 ECMA-376 Document Encryption Key Generation (Standard Encryption)
2.3.4.11 Encryption Key Generation (Agile Encryption)
The encryption key for ECMA-376 document encryption [ECMA-376] using agile encryption MUST be
generated by using the following method, which is derived from PKCS #5: Password-Based
Cryptography Version 2.0 [RFC2898].
|
static byte[] |
CryptoFunctions.hashPassword(String password,
HashAlgorithm hashAlgorithm,
byte[] salt,
int spinCount,
boolean iteratorFirst)
Generalized method for read and write protection hash generation.
|
void |
EncryptionInfoBuilder.initialize(EncryptionInfo ei,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
initialize the builder from scratch
|
protected void |
EncryptionVerifier.setHashAlgorithm(HashAlgorithm hashAlgorithm) |
protected void |
EncryptionHeader.setHashAlgorithm(HashAlgorithm hashAlgorithm) |
Constructor and Description |
---|
EncryptionInfo(DirectoryNode dir,
EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
|
EncryptionInfo(EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
Constructs an EncryptionInfo from scratch
|
EncryptionInfo(NPOIFSFileSystem fs,
EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
|
EncryptionInfo(POIFSFileSystem fs,
EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
|
Modifier and Type | Method and Description |
---|---|
void |
AgileEncryptionInfoBuilder.initialize(EncryptionInfo info,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
Constructor and Description |
---|
AgileEncryptionHeader(CipherAlgorithm algorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
Modifier and Type | Method and Description |
---|---|
void |
BinaryRC4EncryptionInfoBuilder.initialize(EncryptionInfo info,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
Modifier and Type | Method and Description |
---|---|
void |
CryptoAPIEncryptionInfoBuilder.initialize(EncryptionInfo info,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
initialize the builder from scratch
|
Constructor and Description |
---|
CryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
CryptoAPIEncryptionVerifier(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
Modifier and Type | Method and Description |
---|---|
void |
StandardEncryptionInfoBuilder.initialize(EncryptionInfo info,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
initialize the builder from scratch
|
Constructor and Description |
---|
StandardEncryptionHeader(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
StandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
Copyright © 2007-2019. All Rights Reserved.