com.jp.protection.pub
Class PreferencesSecretStorage.Provider

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

public static class PreferencesSecretStorage.Provider
extends java.lang.Object
implements SecretStorage.Provider

Provider responsible of creation new PreferencesSecretStorage instances

See Also:
Serialized Form

Field Summary
protected  java.lang.String fNodeName
           
protected  boolean fUserPreferences
           
static long serialVersionUID
           
static java.lang.String TYPE
           
 
Constructor Summary
PreferencesSecretStorage.Provider()
          Creates a new instance of Provider
PreferencesSecretStorage.Provider(java.lang.String aNodeName, boolean aUserPreferences)
          Creates a new instance of Provider and initializes it
 
Method Summary
 java.lang.Object clone()
           
 SecretStorage create()
          Creates a new instance of PreferencesSecretStorage and initializes it using properties of Provider
 boolean equals(java.lang.Object obj)
           
 java.lang.String getInstantiationStr()
           
 java.lang.String getNodeName()
          Return name of preferences node to put secret storage to
 java.lang.String getType()
           
 boolean isUserPreferences()
          Checks whether user preferences should be used
 void setNodeName(java.lang.String aNodeName)
          Specifies name of preferences node to put secret storage to
 void setUserPreferences(boolean aUserPreferences)
          Specifies that user preferences should be used
 java.lang.String toString()
           
 
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

fUserPreferences

protected boolean fUserPreferences

fNodeName

protected java.lang.String fNodeName

TYPE

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

PreferencesSecretStorage.Provider

public PreferencesSecretStorage.Provider()
Creates a new instance of Provider


PreferencesSecretStorage.Provider

public PreferencesSecretStorage.Provider(java.lang.String aNodeName,
                                         boolean aUserPreferences)
Creates a new instance of Provider and initializes it

Parameters:
aNodeName - name of preferences node to put secret storage to
aUserPreferences - specifies whether user or system preferences should be used
Method Detail

getInstantiationStr

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

getNodeName

public java.lang.String getNodeName()
Return name of preferences node to put secret storage to

Returns:
node name

setNodeName

public void setNodeName(java.lang.String aNodeName)
Specifies name of preferences node to put secret storage to

Parameters:
aNodeName - node name

isUserPreferences

public boolean isUserPreferences()
Checks whether user preferences should be used

Returns:
true if user preferences should be used; false if system preferences should be used instead

setUserPreferences

public void setUserPreferences(boolean aUserPreferences)
Specifies that user preferences should be used

Parameters:
aUserPreferences - true if user preferences should be used; false if system preferences should be used instead

create

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

Specified by:
create in interface SecretStorage.Provider
Returns:
a new instance of PreferencesSecretStorage

clone

public java.lang.Object clone()
Specified by:
clone in interface SecretStorage.Provider
Overrides:
clone in class java.lang.Object

toString

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

getType

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object