org.apache.poi.poifs.crypt
Class Encryptor
java.lang.Object
org.apache.poi.poifs.crypt.Encryptor
- Direct Known Subclasses:
- AgileEncryptor, StandardEncryptor
public abstract class Encryptor
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Encryptor
public Encryptor()
getDataStream
public abstract java.io.OutputStream getDataStream(DirectoryNode dir)
throws java.io.IOException,
java.security.GeneralSecurityException
- Return a output stream for encrypted data.
- Parameters:
dir
- the node to write to
- Returns:
- encrypted stream
- Throws:
java.io.IOException
java.security.GeneralSecurityException
confirmPassword
public abstract void confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt)
confirmPassword
public abstract void confirmPassword(java.lang.String password)
getInstance
public static Encryptor getInstance(EncryptionInfo info)
getDataStream
public java.io.OutputStream getDataStream(NPOIFSFileSystem fs)
throws java.io.IOException,
java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
getDataStream
public java.io.OutputStream getDataStream(POIFSFileSystem fs)
throws java.io.IOException,
java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
getSecretKey
public javax.crypto.SecretKey getSecretKey()
setSecretKey
protected void setSecretKey(javax.crypto.SecretKey secretKey)
Copyright 2014 The Apache Software Foundation or
its licensors, as applicable.