org.apache.poi.poifs.crypt.agile
Class AgileEncryptionInfoBuilder

java.lang.Object
  extended by org.apache.poi.poifs.crypt.agile.AgileEncryptionInfoBuilder
All Implemented Interfaces:
EncryptionInfoBuilder

public class AgileEncryptionInfoBuilder
extends java.lang.Object
implements EncryptionInfoBuilder


Constructor Summary
AgileEncryptionInfoBuilder()
           
 
Method Summary
 AgileDecryptor getDecryptor()
           
 AgileEncryptor getEncryptor()
           
 AgileEncryptionHeader getHeader()
           
protected  EncryptionInfo getInfo()
           
 AgileEncryptionVerifier getVerifier()
           
 void initialize(EncryptionInfo info, CipherAlgorithm cipherAlgorithm, HashAlgorithm hashAlgorithm, int keyBits, int blockSize, ChainingMode chainingMode)
          initialize the builder from scratch
 void initialize(EncryptionInfo info, LittleEndianInput dis)
          initialize the builder from a stream
protected static com.microsoft.schemas.office.x2006.encryption.EncryptionDocument parseDescriptor(java.io.InputStream descriptor)
           
protected static com.microsoft.schemas.office.x2006.encryption.EncryptionDocument parseDescriptor(java.lang.String descriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgileEncryptionInfoBuilder

public AgileEncryptionInfoBuilder()
Method Detail

initialize

public void initialize(EncryptionInfo info,
                       LittleEndianInput dis)
                throws java.io.IOException
Description copied from interface: EncryptionInfoBuilder
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)
Description copied from interface: EncryptionInfoBuilder
initialize the builder from scratch

Specified by:
initialize in interface EncryptionInfoBuilder

getHeader

public AgileEncryptionHeader getHeader()
Specified by:
getHeader in interface EncryptionInfoBuilder
Returns:
the header data

getVerifier

public AgileEncryptionVerifier getVerifier()
Specified by:
getVerifier in interface EncryptionInfoBuilder
Returns:
the verifier data

getDecryptor

public AgileDecryptor getDecryptor()
Specified by:
getDecryptor in interface EncryptionInfoBuilder
Returns:
the decryptor

getEncryptor

public AgileEncryptor getEncryptor()
Specified by:
getEncryptor in interface EncryptionInfoBuilder
Returns:
the encryptor

getInfo

protected EncryptionInfo getInfo()

parseDescriptor

protected static com.microsoft.schemas.office.x2006.encryption.EncryptionDocument parseDescriptor(java.lang.String descriptor)

parseDescriptor

protected static com.microsoft.schemas.office.x2006.encryption.EncryptionDocument parseDescriptor(java.io.InputStream descriptor)


Copyright 2016 The Apache Software Foundation or its licensors, as applicable.