public abstract class Encryptor
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_POIFS_ENTRY |
| Constructor and Description |
|---|
Encryptor() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
confirmPassword(java.lang.String password) |
abstract void |
confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt) |
abstract java.io.OutputStream |
getDataStream(DirectoryNode dir)
Return a output stream for encrypted data.
|
java.io.OutputStream |
getDataStream(NPOIFSFileSystem fs) |
java.io.OutputStream |
getDataStream(OPOIFSFileSystem fs) |
java.io.OutputStream |
getDataStream(POIFSFileSystem fs) |
static Encryptor |
getInstance(EncryptionInfo info) |
javax.crypto.SecretKey |
getSecretKey() |
protected void |
setSecretKey(javax.crypto.SecretKey secretKey) |
protected static final java.lang.String DEFAULT_POIFS_ENTRY
public abstract java.io.OutputStream getDataStream(DirectoryNode dir) throws java.io.IOException, java.security.GeneralSecurityException
dir - the node to write tojava.io.IOExceptionjava.security.GeneralSecurityExceptionpublic abstract void confirmPassword(java.lang.String password,
byte[] keySpec,
byte[] keySalt,
byte[] verifier,
byte[] verifierSalt,
byte[] integritySalt)
public abstract void confirmPassword(java.lang.String password)
public static Encryptor getInstance(EncryptionInfo info)
public java.io.OutputStream getDataStream(NPOIFSFileSystem fs) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic java.io.OutputStream getDataStream(OPOIFSFileSystem fs) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic java.io.OutputStream getDataStream(POIFSFileSystem fs) throws java.io.IOException, java.security.GeneralSecurityException
java.io.IOExceptionjava.security.GeneralSecurityExceptionpublic javax.crypto.SecretKey getSecretKey()
protected void setSecretKey(javax.crypto.SecretKey secretKey)
Copyright 2017 The Apache Software Foundation or its licensors, as applicable.