com.jp.protection.pub
Class JarFileSecretStorage.Provider

java.lang.Object
  extended by com.jp.protection.pub.FileSecretStorage.Provider
      extended by com.jp.protection.pub.JarFileSecretStorage.Provider
All Implemented Interfaces:
SecretStorage.Provider, java.io.Serializable, java.lang.Cloneable
Enclosing class:
JarFileSecretStorage

public static class JarFileSecretStorage.Provider
extends FileSecretStorage.Provider

See Also:
Serialized Form

Field Summary
protected  java.lang.String fEntryName
           
static long serialVersionUID
           
static java.lang.String TYPE
           
 
Fields inherited from class com.jp.protection.pub.FileSecretStorage.Provider
fFileName, fFolder, fUseLockFile, fUserHomeRelative, fUseStrongEncryption
 
Constructor Summary
JarFileSecretStorage.Provider()
           
JarFileSecretStorage.Provider(java.lang.String aFolder, java.lang.String aFileName, boolean aUserHomeRelative, boolean aUseStrongEncryption, boolean aUseLockFile, java.lang.String anEntryName)
          Creates a new instance of Provider and initializes it
 
Method Summary
 SecretStorage create()
          Creates a new instance of FileSecretStorage and initializes it using properties of Provider
 java.lang.String getEntryName()
           
 java.lang.String getInstantiationStr()
           
 java.lang.String getType()
           
 void setEntryName(java.lang.String aEntryName)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jp.protection.pub.FileSecretStorage.Provider
clone, equals, getFileName, getFolder, isUseLockFile, isUserHomeRelative, isUseStrongEncryption, setFileName, setFolder, setUseLockFile, setUserHomeRelative, setUseStrongEncryption
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

TYPE

public static final java.lang.String TYPE
See Also:
Constant Field Values

fEntryName

protected java.lang.String fEntryName
Constructor Detail

JarFileSecretStorage.Provider

public JarFileSecretStorage.Provider()

JarFileSecretStorage.Provider

public JarFileSecretStorage.Provider(java.lang.String aFolder,
                                     java.lang.String aFileName,
                                     boolean aUserHomeRelative,
                                     boolean aUseStrongEncryption,
                                     boolean aUseLockFile,
                                     java.lang.String anEntryName)
Creates a new instance of Provider 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 persists the Secret Storage to
Method Detail

getInstantiationStr

public java.lang.String getInstantiationStr()
Specified by:
getInstantiationStr in interface SecretStorage.Provider
Overrides:
getInstantiationStr in class FileSecretStorage.Provider

toString

public java.lang.String toString()
Overrides:
toString in class FileSecretStorage.Provider

create

public SecretStorage create()
Creates a new instance of FileSecretStorage and initializes it using properties of Provider

Specified by:
create in interface SecretStorage.Provider
Overrides:
create in class FileSecretStorage.Provider
Returns:
a new instance of FileSecretStorage

getType

public java.lang.String getType()
Specified by:
getType in interface SecretStorage.Provider
Overrides:
getType in class FileSecretStorage.Provider

getEntryName

public java.lang.String getEntryName()

setEntryName

public void setEntryName(java.lang.String aEntryName)