com.jp.protection.pub
Class JarFileSecretStorage

java.lang.Object
  extended by com.jp.protection.pub.FileSecretStorage
      extended by com.jp.protection.pub.JarFileSecretStorage
All Implemented Interfaces:
SecretStorage

public class JarFileSecretStorage
extends FileSecretStorage


Nested Class Summary
static class JarFileSecretStorage.Provider
           
 
Nested classes/interfaces inherited from class com.jp.protection.pub.FileSecretStorage
FileSecretStorage.DecodeInputStream, FileSecretStorage.DecryptInputStream, FileSecretStorage.EncodeOutputStream, FileSecretStorage.EncryptOutputStream
 
Field Summary
protected  java.lang.String fEntryName
           
 
Fields inherited from class com.jp.protection.pub.FileSecretStorage
fDirty, fFileName, fFolder, fLoaded, fProperties, fSkipEncryption, fUseLockFile, fUserHomeRelative, fUseStrongEncryption, fVerbose
 
Constructor Summary
JarFileSecretStorage()
           
JarFileSecretStorage(java.lang.String aFolder, java.lang.String aFileName, boolean aUserHomeRelative, boolean aUseStrongEncryption, boolean aUseLockFile, java.lang.String anEntryName)
          Creates a new instance of JarFileSecretStorage and initializes it
JarFileSecretStorage(java.lang.String aFolder, java.lang.String aFileName, boolean aUserHomeRelative, java.lang.String anEntryName)
          Creates a new instance of JarFileSecretStorage and initializes it.
 
Method Summary
 java.lang.String getEntryName()
          Returns an entry name to put Secret Storage to
protected  java.io.InputStream getInputStream()
           
protected  java.io.OutputStream getOutputStream()
           
protected  void loadImpl()
           
protected  void saveImpl()
           
 void setEntryName(java.lang.String aEntryName)
          Specifies an entry name to put Secret Storage to
 
Methods inherited from class com.jp.protection.pub.FileSecretStorage
composePassword, error, fileLockError, generateTimestamp, getCipher, getFile, getFileName, getFolder, getProperties, getProperty, getProperty, getTimestamp, isDirty, isLoaded, isSkipEncryption, isUseLockFile, isUserHomeRelative, isUseStrongEncryption, isVerbose, load, save, setDirty, setFileName, setFolder, setLoaded, setProperty, setSkipEncryption, setUseLockFile, setUserHomeRelative, setUseStrongEncryption, setVerbose
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fEntryName

protected java.lang.String fEntryName
Constructor Detail

JarFileSecretStorage

public JarFileSecretStorage()

JarFileSecretStorage

public JarFileSecretStorage(java.lang.String aFolder,
                            java.lang.String aFileName,
                            boolean aUserHomeRelative,
                            java.lang.String anEntryName)
Creates a new instance of JarFileSecretStorage and initializes it. This constructor created an instance that uses strong encryption and does not use lock files

Parameters:
aFolder - folder to locate secret storage file
aFileName - a name of secret storage file
aUserHomeRelative - specifies whether a folder is user HOME folder relative Secret Storage
anEntryName - name of an entry to put Secret Storage to
Since:
v5.0

JarFileSecretStorage

public JarFileSecretStorage(java.lang.String aFolder,
                            java.lang.String aFileName,
                            boolean aUserHomeRelative,
                            boolean aUseStrongEncryption,
                            boolean aUseLockFile,
                            java.lang.String anEntryName)
Creates a new instance of JarFileSecretStorage and initializes it

Parameters:
aFolder - folder to locate secret storage file
aFileName - a name of secret storage file
aUserHomeRelative - specifies whether a folder is user HOME folder relative
aUseStrongEncryption - specifies whether strong encryption should be used
aUseLockFile - specifies whether lock file (.lck) should be used to prevent concurrent modifications of the Secret Storage
anEntryName - name of an entry to put Secret Storage to
Since:
v5.0
Method Detail

getEntryName

public java.lang.String getEntryName()
Returns an entry name to put Secret Storage to

Returns:
an entry name

setEntryName

public void setEntryName(java.lang.String aEntryName)
Specifies an entry name to put Secret Storage to

Parameters:
aEntryName - an entry name

getInputStream

protected java.io.InputStream getInputStream()
Overrides:
getInputStream in class FileSecretStorage

getOutputStream

protected java.io.OutputStream getOutputStream()
Overrides:
getOutputStream in class FileSecretStorage

loadImpl

protected void loadImpl()
Overrides:
loadImpl in class FileSecretStorage

saveImpl

protected void saveImpl()
Overrides:
saveImpl in class FileSecretStorage