Package | Description |
---|---|
org.apache.poi.poifs.crypt |
Implementation of the ECMA-376 and MS-propritary document encryptions
|
org.apache.poi.poifs.crypt.agile | |
org.apache.poi.poifs.crypt.binaryrc4 | |
org.apache.poi.poifs.crypt.cryptoapi | |
org.apache.poi.poifs.crypt.dsig | |
org.apache.poi.poifs.crypt.dsig.facets | |
org.apache.poi.poifs.crypt.dsig.services | |
org.apache.poi.poifs.crypt.standard | |
org.apache.poi.poifs.crypt.xor | |
org.apache.poi.xssf.usermodel | |
org.apache.poi.xssf.usermodel.helpers | |
org.apache.poi.xwpf.usermodel |
Modifier and Type | Method and Description |
---|---|
static HashAlgorithm |
HashAlgorithm.fromEcmaId(int ecmaId) |
static HashAlgorithm |
HashAlgorithm.fromEcmaId(java.lang.String ecmaString) |
static HashAlgorithm |
HashAlgorithm.fromString(java.lang.String string) |
HashAlgorithm |
EncryptionHeader.getHashAlgorithm() |
HashAlgorithm |
EncryptionVerifier.getHashAlgorithm() |
static HashAlgorithm |
HashAlgorithm.valueOf(java.lang.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)
|
static byte[] |
CryptoFunctions.generateKey(byte[] passwordHash,
HashAlgorithm hashAlgorithm,
byte[] blockKey,
int keySize)
2.3.4.11 Encryption Key Generation (Agile Encryption)
|
static javax.crypto.Mac |
CryptoFunctions.getMac(HashAlgorithm hashAlgorithm) |
static java.security.MessageDigest |
CryptoFunctions.getMessageDigest(HashAlgorithm hashAlgorithm) |
static byte[] |
CryptoFunctions.hashPassword(java.lang.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(java.lang.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 |
EncryptionHeader.setHashAlgorithm(HashAlgorithm hashAlgorithm) |
protected void |
EncryptionVerifier.setHashAlgorithm(HashAlgorithm hashAlgorithm) |
Constructor and Description |
---|
EncryptionInfo(EncryptionMode encryptionMode,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
Constructs an EncryptionInfo from scratch
|
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 |
---|---|
HashAlgorithm |
SignatureConfig.getDigestAlgo() |
HashAlgorithm |
SignatureConfig.getTspDigestAlgo() |
HashAlgorithm |
SignatureConfig.getXadesDigestAlgo() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
SignatureConfig.getDigestMethodUri(HashAlgorithm digestAlgo)
Converts the digest algorithm - currently only sha* and ripemd160 is supported.
|
void |
SignatureConfig.setDigestAlgo(HashAlgorithm digestAlgo) |
void |
SignatureConfig.setTspDigestAlgo(HashAlgorithm tspDigestAlgo) |
void |
SignatureConfig.setXadesDigestAlgo(HashAlgorithm xadesDigestAlgo) |
Modifier and Type | Method and Description |
---|---|
protected static void |
XAdESSignatureFacet.setDigestAlgAndValue(org.etsi.uri.x01903.v13.DigestAlgAndValueType digestAlgAndValue,
byte[] data,
HashAlgorithm digestAlgo)
Gives back the JAXB DigestAlgAndValue data structure.
|
Modifier and Type | Method and Description |
---|---|
org.bouncycastle.asn1.ASN1ObjectIdentifier |
TSPTimeStampService.mapDigestAlgoToOID(HashAlgorithm digestAlgo)
Maps the digest algorithm to corresponding OID value.
|
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) |
Modifier and Type | Method and Description |
---|---|
void |
XOREncryptionInfoBuilder.initialize(EncryptionInfo info,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode) |
Modifier and Type | Method and Description |
---|---|
void |
XSSFWorkbook.setRevisionsPassword(java.lang.String password,
HashAlgorithm hashAlgo)
Sets the revisions password.
|
void |
XSSFSheet.setSheetPassword(java.lang.String password,
HashAlgorithm hashAlgo)
Sets the sheet password.
|
void |
XSSFWorkbook.setWorkbookPassword(java.lang.String password,
HashAlgorithm hashAlgo)
Sets the workbook password.
|
Modifier and Type | Method and Description |
---|---|
static void |
XSSFPasswordHelper.setPassword(org.apache.xmlbeans.XmlObject xobj,
java.lang.String password,
HashAlgorithm hashAlgo,
java.lang.String prefix)
Sets the XORed or hashed password
|
Modifier and Type | Method and Description |
---|---|
void |
XWPFDocument.enforceCommentsProtection(java.lang.String password,
HashAlgorithm hashAlgo)
Enforce the Comments protection.
sample snippet from settings.xml |
void |
XWPFDocument.enforceFillingFormsProtection(java.lang.String password,
HashAlgorithm hashAlgo)
Enforce the Filling Forms protection.
sample snippet from settings.xml |
void |
XWPFDocument.enforceReadonlyProtection(java.lang.String password,
HashAlgorithm hashAlgo)
Enforces the readOnly protection with a password.
sample snippet from settings.xml |
void |
XWPFDocument.enforceTrackedChangesProtection(java.lang.String password,
HashAlgorithm hashAlgo)
Enforce the Tracked Changes protection.
sample snippet from settings.xml |
void |
XWPFSettings.setEnforcementEditValue(org.openxmlformats.schemas.wordprocessingml.x2006.main.STDocProtect.Enum editValue,
java.lang.String password,
HashAlgorithm hashAlgo)
Enforces the protection with the option specified by passed editValue and password.
sample snippet from settings.xml |
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.