public abstract class Encryptor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_POIFS_ENTRY |
| Constructor and Description |
|---|
Encryptor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
confirmPassword(String password) |
abstract void |
confirmPassword(String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
abstract OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
OutputStream |
getDataStream(NPOIFSFileSystem fs) |
OutputStream |
getDataStream(OPOIFSFileSystem fs) |
OutputStream |
getDataStream(POIFSFileSystem fs) |
static Encryptor |
getInstance(EncryptionInfo info) |
SecretKey |
getSecretKey() |
protected void |
setSecretKey(SecretKey secretKey) |
protected static final String DEFAULT_POIFS_ENTRY
public abstract OutputStream getDataStream(DirectoryNode dir) throws IOException, GeneralSecurityException
dir - the node to write toIOExceptionGeneralSecurityExceptionpublic abstract void confirmPassword(String password, byte[] keySpec, byte[] keySalt, byte[] verifier, byte[] verifierSalt, byte[] integritySalt)
public abstract void confirmPassword(String password)
public static Encryptor getInstance(EncryptionInfo info)
public OutputStream getDataStream(NPOIFSFileSystem fs) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic OutputStream getDataStream(OPOIFSFileSystem fs) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic OutputStream getDataStream(POIFSFileSystem fs) throws IOException, GeneralSecurityException
IOExceptionGeneralSecurityExceptionpublic SecretKey getSecretKey()
protected void setSecretKey(SecretKey secretKey)
Copyright © 2007-2020. All Rights Reserved.