|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jp.protection.pub.FileSecretStorage.Provider
public static class FileSecretStorage.Provider
Field Summary | |
---|---|
protected java.lang.String |
fFileName
|
protected java.lang.String |
fFolder
|
protected boolean |
fUseLockFile
|
protected boolean |
fUserHomeRelative
|
protected boolean |
fUseStrongEncryption
|
static long |
serialVersionUID
|
static java.lang.String |
TYPE
|
Constructor Summary | |
---|---|
FileSecretStorage.Provider()
Creates a new instance of Provider |
|
FileSecretStorage.Provider(java.lang.String aFolder,
java.lang.String aFileName)
Creates a new instance of Provider and initializes it |
|
FileSecretStorage.Provider(java.lang.String aFolder,
java.lang.String aFileName,
boolean aUserHomeRelative)
Creates a new instance of Provider and initializes it |
|
FileSecretStorage.Provider(java.lang.String aFolder,
java.lang.String aFileName,
boolean aUserHomeRelative,
boolean aUseStrongEncryption)
Creates a new instance of Provider and initializes it |
|
FileSecretStorage.Provider(java.lang.String aFolder,
java.lang.String aFileName,
boolean aUserHomeRelative,
boolean aUseStrongEncryption,
boolean aUseLockFile)
Creates a new instance of Provider and initializes it |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
SecretStorage |
create()
Creates a new instance of FileSecretStorage and initializes it using properties of Provider |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getFileName()
Returns the name of the storage file |
java.lang.String |
getFolder()
Returns the folder of the storage file |
java.lang.String |
getInstantiationStr()
|
java.lang.String |
getType()
|
boolean |
isUseLockFile()
|
boolean |
isUserHomeRelative()
Checks whether folder to find storage file is relative to the user home. |
boolean |
isUseStrongEncryption()
|
void |
setFileName(java.lang.String aFileName)
Specifies the name of the storage file |
void |
setFolder(java.lang.String aFolder)
Specifies the folder of the storage file |
void |
setUseLockFile(boolean useLockFile)
|
void |
setUserHomeRelative(boolean aUserHomeRelative)
Specifies that folder to find storage file is relative to the user home. |
void |
setUseStrongEncryption(boolean aUseStrongEncryption)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
protected java.lang.String fFileName
protected java.lang.String fFolder
protected boolean fUserHomeRelative
protected boolean fUseLockFile
protected boolean fUseStrongEncryption
public static final java.lang.String TYPE
Constructor Detail |
---|
public FileSecretStorage.Provider()
public FileSecretStorage.Provider(java.lang.String aFolder, java.lang.String aFileName)
aFolder
- folder to locate secret storage fileaFileName
- a name of secret storage filepublic FileSecretStorage.Provider(java.lang.String aFolder, java.lang.String aFileName, boolean aUserHomeRelative)
aFolder
- folder to locate secret storage fileaFileName
- a name of secret storage fileaUserHomeRelative
- specifies whether a folder is user HOME folder relativepublic FileSecretStorage.Provider(java.lang.String aFolder, java.lang.String aFileName, boolean aUserHomeRelative, boolean aUseStrongEncryption)
aFolder
- folder to locate secret storage fileaFileName
- a name of secret storage fileaUserHomeRelative
- specifies whether a folder is user HOME folder relativeaUseStrongEncryption
- specifies whether strong encryption should be usedpublic FileSecretStorage.Provider(java.lang.String aFolder, java.lang.String aFileName, boolean aUserHomeRelative, boolean aUseStrongEncryption, boolean aUseLockFile)
aFolder
- folder to locate secret storage fileaFileName
- a name of secret storage fileaUserHomeRelative
- specifies whether a folder is user HOME folder relativeaUseStrongEncryption
- specifies whether strong encryption should be usedaUseLockFile
- specifies whether lock file (.lck) should be used to prevent concurrent modifications of the Secret StorageMethod Detail |
---|
public java.lang.String getInstantiationStr()
getInstantiationStr
in interface SecretStorage.Provider
public SecretStorage create()
create
in interface SecretStorage.Provider
public boolean isUserHomeRelative()
true
if folder to find storage file is
relative to the user home; false
otherwise.public void setUserHomeRelative(boolean aUserHomeRelative)
aUserHomeRelative
- true
if folder to find storage file is
relative to the user home; false
otherwise.public java.lang.String getFileName()
public void setFileName(java.lang.String aFileName)
aFileName
- a name of the storage file to assignpublic java.lang.String getFolder()
public void setFolder(java.lang.String aFolder)
aFolder
- a folder of the storage file to assignpublic java.lang.Object clone()
clone
in interface SecretStorage.Provider
clone
in class java.lang.Object
public boolean isUseStrongEncryption()
public void setUseStrongEncryption(boolean aUseStrongEncryption)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getType()
getType
in interface SecretStorage.Provider
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isUseLockFile()
public void setUseLockFile(boolean useLockFile)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |