public class SecureFileStore extends FileStore
HEADER_LENGTH, name| 构造器和说明 |
|---|
SecureFileStore(DataHandler handler,
String name,
String mode,
String cipher,
byte[] key,
int keyIterations) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
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, 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 在类中 FileStoreprotected void initKey(byte[] salt)
FileStoreprotected void writeDirect(byte[] b,
int off,
int len)
FileStorewriteDirect 在类中 FileStoreb - the source bufferoff - the offsetlen - the number of bytes to writepublic void write(byte[] b,
int off,
int len)
FileStorepublic void readFullyDirect(byte[] b,
int off,
int len)
FileStorereadFullyDirect 在类中 FileStoreb - the target bufferoff - the offsetlen - the number of bytes to readpublic void readFully(byte[] b,
int off,
int len)
FileStoreCopyright © 2022. All rights reserved.