Class AgileEncryptionInfoBuilder
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.agile.AgileEncryptionInfoBuilder
- All Implemented Interfaces:
EncryptionInfoBuilder
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) AgileDecryptor(package private) AgileEncryptor(package private) AgileEncryptionHeader(package private) EncryptionInfoprivate static org.slf4j.Logger(package private) AgileEncryptionVerifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EncryptionInfogetInfo()voidinitialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) initialize the builder from scratchvoidinitialize(EncryptionInfo info, LittleEndianInput dis) initialize the builder from a streamprotected static CTEncryptionparseDescriptor(InputStream descriptor) protected static CTEncryptionparseDescriptor(String descriptor)
-
Field Details
-
log
private static org.slf4j.Logger log -
info
EncryptionInfo info -
header
AgileEncryptionHeader header -
verifier
AgileEncryptionVerifier verifier -
decryptor
AgileDecryptor decryptor -
encryptor
AgileEncryptor encryptor
-
-
Constructor Details
-
AgileEncryptionInfoBuilder
public AgileEncryptionInfoBuilder()
-
-
Method Details
-
initialize
Description copied from interface:EncryptionInfoBuilderinitialize the builder from a stream- Specified by:
initializein interfaceEncryptionInfoBuilder- Throws:
IOException
-
initialize
public void initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode) Description copied from interface:EncryptionInfoBuilderinitialize the builder from scratch- Specified by:
initializein interfaceEncryptionInfoBuilder
-
getHeader
- Specified by:
getHeaderin interfaceEncryptionInfoBuilder- Returns:
- the header data
-
getVerifier
- Specified by:
getVerifierin interfaceEncryptionInfoBuilder- Returns:
- the verifier data
-
getDecryptor
- Specified by:
getDecryptorin interfaceEncryptionInfoBuilder- Returns:
- the decryptor
-
getEncryptor
- Specified by:
getEncryptorin interfaceEncryptionInfoBuilder- Returns:
- the encryptor
-
getInfo
-
parseDescriptor
-
parseDescriptor
-