org.apache.poi.poifs.crypt.cryptoapi
Class CryptoAPIEncryptionInfoBuilder
java.lang.Object
org.apache.poi.poifs.crypt.cryptoapi.CryptoAPIEncryptionInfoBuilder
- All Implemented Interfaces:
- EncryptionInfoBuilder
public class CryptoAPIEncryptionInfoBuilder
- extends java.lang.Object
- implements EncryptionInfoBuilder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CryptoAPIEncryptionInfoBuilder
public CryptoAPIEncryptionInfoBuilder()
initialize
public void initialize(EncryptionInfo info,
LittleEndianInput dis)
throws java.io.IOException
- initialize the builder from a stream
- Specified by:
initialize
in interface EncryptionInfoBuilder
- Throws:
java.io.IOException
initialize
public void initialize(EncryptionInfo info,
CipherAlgorithm cipherAlgorithm,
HashAlgorithm hashAlgorithm,
int keyBits,
int blockSize,
ChainingMode chainingMode)
- initialize the builder from scratch
- Specified by:
initialize
in interface EncryptionInfoBuilder
getHeader
public CryptoAPIEncryptionHeader getHeader()
- Specified by:
getHeader
in interface EncryptionInfoBuilder
- Returns:
- the header data
getVerifier
public CryptoAPIEncryptionVerifier getVerifier()
- Specified by:
getVerifier
in interface EncryptionInfoBuilder
- Returns:
- the verifier data
getDecryptor
public CryptoAPIDecryptor getDecryptor()
- Specified by:
getDecryptor
in interface EncryptionInfoBuilder
- Returns:
- the decryptor
getEncryptor
public CryptoAPIEncryptor getEncryptor()
- Specified by:
getEncryptor
in interface EncryptionInfoBuilder
- Returns:
- the encryptor
getEncryptionInfo
public EncryptionInfo getEncryptionInfo()
Copyright 2016 The Apache Software Foundation or
its licensors, as applicable.