public class SecureFileStore extends FileStore
handler, HEADER_LENGTH, name| Constructor and Description |
|---|
SecureFileStore(DataHandler handler,
String name,
String mode,
String cipher,
byte[] key,
int keyIterations) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
generateSalt()
Generate the random salt bytes if required.
|
protected void |
initKey(byte[] salt)
Initialize the key using the given salt.
|
void |
readFully(byte[] b,
int off,
int len)
Read a number of bytes.
|
protected void |
readFullyDirect(byte[] b,
int off,
int len)
Read a number of bytes without decrypting.
|
void |
seek(long x)
Go to the specified file location.
|
void |
write(byte[] b,
int off,
int len)
Write a number of bytes.
|
protected void |
writeDirect(byte[] b,
int off,
int len)
Write a number of bytes without encrypting.
|
autoDelete, close, closeAndDeleteSilently, closeFile, closeSilently, getFilePointer, init, isTextMode, length, open, open, open, openFile, releaseLock, setCheckedWriting, setLength, stopAutoDelete, sync, tryLockpublic SecureFileStore(DataHandler handler, String name, String mode, String cipher, byte[] key, int keyIterations)
protected byte[] generateSalt()
FileStoregenerateSalt in class FileStoreprotected void initKey(byte[] salt)
FileStoreprotected void writeDirect(byte[] b,
int off,
int len)
FileStorewriteDirect in class FileStoreb - the source bufferoff - the offsetlen - the number of bytes to writepublic void write(byte[] b,
int off,
int len)
FileStoreprotected void readFullyDirect(byte[] b,
int off,
int len)
FileStorereadFullyDirect in class FileStoreb - the target bufferoff - the offsetlen - the number of bytes to readpublic void readFully(byte[] b,
int off,
int len)
FileStoreCopyright © 2012 JBoss by Red Hat. All Rights Reserved.