Class AgileEncryptionInfoBuilder
java.lang.Object
org.docx4j.org.apache.poi.poifs.crypt.agile.AgileEncryptionInfoBuilder
- All Implemented Interfaces:
EncryptionInfoBuilder
public class AgileEncryptionInfoBuilder extends java.lang.Object implements EncryptionInfoBuilder
-
Constructor Summary
Constructors Constructor Description AgileEncryptionInfoBuilder() -
Method Summary
Modifier and Type Method Description AgileDecryptorgetDecryptor()AgileEncryptorgetEncryptor()AgileEncryptionHeadergetHeader()protected EncryptionInfogetInfo()AgileEncryptionVerifiergetVerifier()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(java.io.InputStream descriptor)protected static CTEncryptionparseDescriptor(java.lang.String descriptor)
-
Constructor Details
-
AgileEncryptionInfoBuilder
public AgileEncryptionInfoBuilder()
-
-
Method Details
-
initialize
Description copied from interface:EncryptionInfoBuilderinitialize the builder from a stream- Specified by:
initializein interfaceEncryptionInfoBuilder- Throws:
java.io.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
-