Class AbstractPersistentStore<T>
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.applink.oauth.serviceprovider.AbstractPersistentStore<T>
-
- Direct Known Subclasses:
PersistentServiceProviderConsumerStore
,PersistentServiceProviderTokenStore
public abstract class AbstractPersistentStore<T> extends Object implements Saveable, OnMaster
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractPersistentStore(String configFileName, com.thoughtworks.xstream.converters.Converter entityConverter)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected static String
decrypt(String encryptedValue)
protected static String
encrypt(String unencryptedValue)
protected XmlFile
getConfigFile()
The file wheretokens
are savedprotected abstract Class<T>
getEntityClass()
protected abstract String
getStoreEntryName()
protected abstract String
getStoreKeyName()
protected abstract String
getStoreValueName()
void
load()
void
save()
-
-
-
Field Detail
-
xStream
protected final transient XStream2 xStream
-
entityMap
@CopyOnWrite protected volatile Map<String,T> entityMap
-
-
Constructor Detail
-
AbstractPersistentStore
protected AbstractPersistentStore(String configFileName, com.thoughtworks.xstream.converters.Converter entityConverter)
-
-