Uses of Enum Class
org.apache.poi.poifs.crypt.HashAlgorithm
Packages that use HashAlgorithm
Package
Description
Implementation of the ECMA-376 and MS-propritary document encryptions
-
Uses of HashAlgorithm in org.apache.poi.poifs.crypt
Methods in org.apache.poi.poifs.crypt that return HashAlgorithmModifier and TypeMethodDescriptionstatic HashAlgorithmHashAlgorithm.fromEcmaId(int ecmaId) static HashAlgorithmHashAlgorithm.fromEcmaId(String ecmaString) static HashAlgorithmHashAlgorithm.fromString(String string) EncryptionHeader.getHashAlgorithm()EncryptionVerifier.getHashAlgorithm()static HashAlgorithmReturns the enum constant of this class with the specified name.static HashAlgorithm[]HashAlgorithm.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in 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)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)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.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 scratch -
Uses of HashAlgorithm in org.apache.poi.poifs.crypt.agile
Methods in 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.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.apache.poi.poifs.crypt.binaryrc4
Methods in 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.apache.poi.poifs.crypt.cryptoapi
Methods in 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.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.apache.poi.poifs.crypt.dsig
Methods in org.apache.poi.poifs.crypt.dsig that return HashAlgorithmModifier and TypeMethodDescriptionSignatureConfig.getDigestAlgo()SignatureConfig.getTspDigestAlgo()SignatureConfig.getXadesDigestAlgo()Methods in org.apache.poi.poifs.crypt.dsig with parameters of type HashAlgorithmModifier and TypeMethodDescriptionstatic StringSignatureConfig.getDigestMethodUri(HashAlgorithm digestAlgo) Converts the digest algorithm - currently only sha* and ripemd160 is supported.voidSignatureConfig.setDigestAlgo(HashAlgorithm digestAlgo) voidSignatureConfig.setTspDigestAlgo(HashAlgorithm tspDigestAlgo) voidSignatureConfig.setXadesDigestAlgo(HashAlgorithm xadesDigestAlgo) -
Uses of HashAlgorithm in org.apache.poi.poifs.crypt.dsig.facets
Methods in org.apache.poi.poifs.crypt.dsig.facets with parameters of type HashAlgorithmModifier and TypeMethodDescriptionprotected static voidXAdESSignatureFacet.setDigestAlgAndValue(org.etsi.uri.x01903.v13.DigestAlgAndValueType digestAlgAndValue, byte[] data, HashAlgorithm digestAlgo) Gives back the JAXB DigestAlgAndValue data structure. -
Uses of HashAlgorithm in org.apache.poi.poifs.crypt.dsig.services
Methods in org.apache.poi.poifs.crypt.dsig.services with parameters of type HashAlgorithmModifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifierTSPTimeStampService.mapDigestAlgoToOID(HashAlgorithm digestAlgo) Maps the digest algorithm to corresponding OID value. -
Uses of HashAlgorithm in org.apache.poi.poifs.crypt.standard
Methods in 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.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) -
Uses of HashAlgorithm in org.apache.poi.poifs.crypt.xor
Methods in org.apache.poi.poifs.crypt.xor with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidXOREncryptionInfoBuilder.initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) -
Uses of HashAlgorithm in org.apache.poi.xssf.usermodel
Methods in org.apache.poi.xssf.usermodel with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidXSSFWorkbook.setRevisionsPassword(String password, HashAlgorithm hashAlgo) Sets the revisions password.voidXSSFSheet.setSheetPassword(String password, HashAlgorithm hashAlgo) Sets the sheet password.voidXSSFWorkbook.setWorkbookPassword(String password, HashAlgorithm hashAlgo) Sets the workbook password. -
Uses of HashAlgorithm in org.apache.poi.xssf.usermodel.helpers
Methods in org.apache.poi.xssf.usermodel.helpers with parameters of type HashAlgorithmModifier and TypeMethodDescriptionstatic voidXSSFPasswordHelper.setPassword(org.apache.xmlbeans.XmlObject xobj, String password, HashAlgorithm hashAlgo, String prefix) Sets the XORed or hashed password -
Uses of HashAlgorithm in org.apache.poi.xwpf.usermodel
Methods in org.apache.poi.xwpf.usermodel with parameters of type HashAlgorithmModifier and TypeMethodDescriptionvoidXWPFDocument.enforceCommentsProtection(String password, HashAlgorithm hashAlgo) Enforce the Comments protection.
sample snippet from settings.xmlvoidXWPFDocument.enforceFillingFormsProtection(String password, HashAlgorithm hashAlgo) Enforce the Filling Forms protection.
sample snippet from settings.xmlvoidXWPFDocument.enforceReadonlyProtection(String password, HashAlgorithm hashAlgo) Enforces the readOnly protection with a password.
sample snippet from settings.xmlvoidXWPFDocument.enforceTrackedChangesProtection(String password, HashAlgorithm hashAlgo) Enforce the Tracked Changes protection.
sample snippet from settings.xmlvoidXWPFSettings.setEnforcementEditValue(org.openxmlformats.schemas.wordprocessingml.x2006.main.STDocProtect.Enum editValue, String password, HashAlgorithm hashAlgo) Enforces the protection with the option specified by passed editValue and password.
sample snippet from settings.xml