Uses of Enum
org.docx4j.org.apache.poi.poifs.crypt.HashAlgorithm
Packages that use HashAlgorithm
-
Uses of HashAlgorithm in org.docx4j.openpackaging.packages
Methods in org.docx4j.openpackaging.packages with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidProtectDocument.restrictEditing(STDocProtect editValue, String password, HashAlgorithm hashAlgo) Enforces the protection with the option specified by passed editValue, password, and HashAlgorithm for the password.voidProtectDocument.restrictFormatting(List<String> allowedStyleNames, boolean removedNotAllowedFormatting, boolean autoFormatOverride, boolean styleLockTheme, boolean styleLockQFSet, String password, HashAlgorithm hashAlgo) Restrict allowed formatting to specified styles.voidProtectWorkbook.setSheetProtection(CTSheetProtection sheetProtection, String password, HashAlgorithm hashAlgo) Enforces the protection passed in sheetProtection, with the specified password, and HashAlgorithm for the password.voidProtectWorkbook.setWorkbookProtection(String password, HashAlgorithm hashAlgo, boolean lockRevision, boolean lockStructure, boolean lockWindows) Enforce Workbook Protection, with the specified password, using hashAlgo. -
Uses of HashAlgorithm in org.docx4j.openpackaging.parts.WordprocessingML
Methods in org.docx4j.openpackaging.parts.WordprocessingML with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidDocumentSettingsPart.protectRestrictEditing(STDocProtect editValue, String password, HashAlgorithm hashAlgo) Enforces the protection with the option specified by passed editValue, password, and HashAlgorithm for the password.voidDocumentSettingsPart.protectRestrictFormatting(boolean autoFormatOverride, boolean styleLockTheme, boolean styleLockQFSet, String password, HashAlgorithm hashAlgo) Restrict allowed formatting to specified styles. -
Uses of HashAlgorithm in org.docx4j.org.apache.poi.poifs.crypt
Methods in org.docx4j.org.apache.poi.poifs.crypt that return HashAlgorithmModifier and TypeMethodDescriptionstatic HashAlgorithmHashAlgorithm.fromEcmaId(int ecmaId) static HashAlgorithmHashAlgorithm.fromEcmaId(String ecmaString) static HashAlgorithmHashAlgorithm.fromString(String string) EncryptionVerifier.getHashAlgorithm()EncryptionHeader.getHashAlgorithmEx()static HashAlgorithmReturns 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.Methods in org.docx4j.org.apache.poi.poifs.crypt with parameters of type HashAlgorithmModifier and TypeMethodDescriptionstatic 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 MacCryptoFunctions.getMac(HashAlgorithm hashAlgorithm) static MessageDigestCryptoFunctions.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.voidEncryptionInfoBuilder.initialize(EncryptionInfo ei, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) initialize the builder from scratchprotected voidEncryptionHeader.setHashAlgorithm(HashAlgorithm hashAlgorithm) protected voidEncryptionVerifier.setHashAlgorithm(HashAlgorithm hashAlgorithm) Constructors in org.docx4j.org.apache.poi.poifs.crypt with parameters of type HashAlgorithmModifierConstructorDescriptionEncryptionInfo(EncryptionMode encryptionMode, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) Constructs an EncryptionInfo from scratchEncryptionInfo(DirectoryNode dir, EncryptionMode encryptionMode, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) Deprecated.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) -
Uses of HashAlgorithm in org.docx4j.org.apache.poi.poifs.crypt.agile
Methods in org.docx4j.org.apache.poi.poifs.crypt.agile with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidAgileEncryptionInfoBuilder.initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) Constructors in org.docx4j.org.apache.poi.poifs.crypt.agile with parameters of type HashAlgorithmModifierConstructorDescriptionAgileEncryptionHeader(CipherAlgorithm algorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) AgileEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) -
Uses of HashAlgorithm in org.docx4j.org.apache.poi.poifs.crypt.binaryrc4
Methods in org.docx4j.org.apache.poi.poifs.crypt.binaryrc4 with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidBinaryRC4EncryptionInfoBuilder.initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) -
Uses of HashAlgorithm in org.docx4j.org.apache.poi.poifs.crypt.cryptoapi
Methods in org.docx4j.org.apache.poi.poifs.crypt.cryptoapi with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidCryptoAPIEncryptionInfoBuilder.initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) initialize the builder from scratchConstructors in org.docx4j.org.apache.poi.poifs.crypt.cryptoapi with parameters of type HashAlgorithmModifierConstructorDescriptionprotectedCryptoAPIEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) protectedCryptoAPIEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) -
Uses of HashAlgorithm in org.docx4j.org.apache.poi.poifs.crypt.standard
Methods in org.docx4j.org.apache.poi.poifs.crypt.standard with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidStandardEncryptionInfoBuilder.initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) initialize the builder from scratchConstructors in org.docx4j.org.apache.poi.poifs.crypt.standard with parameters of type HashAlgorithmModifierConstructorDescriptionprotectedStandardEncryptionHeader(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) protectedStandardEncryptionVerifier(CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
EncryptionInfo(EncryptionMode, CipherAlgorithm, HashAlgorithm, int, int, ChainingMode)