Flushable
, Map<String,T>
, org.refcodes.component.Flushable
, org.refcodes.component.Flushable.FlushBuilder<String>
, ObfuscationProperties
, ObfuscationProperties.MutableObfuscationProperties
, ObfuscationProperties.ObfuscationPropertiesBuilder
, ObfuscationResourceProperties
, ObfuscationResourceProperties.MutableObfuscationResourceProperties
, ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
, org.refcodes.configuration.Properties
, org.refcodes.configuration.Properties.MutableProperties
, org.refcodes.configuration.Properties.PropertiesBuilder
, org.refcodes.configuration.ResourceProperties
, org.refcodes.configuration.ResourceProperties.MutableResoureProperties
, org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
, org.refcodes.mixin.DecryptPrefixAccessor
, org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixBuilder<String>
, org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixMutator
, org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixProperty
, org.refcodes.mixin.DelimiterAccessor
, org.refcodes.mixin.Dumpable
, org.refcodes.mixin.EncryptPrefixAccessor
, org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixBuilder<String>
, org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixMutator
, org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixProperty
, org.refcodes.mixin.TypeAccessor<String>
, org.refcodes.structure.CanonicalMap
, org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
, org.refcodes.structure.Clearable
, org.refcodes.structure.Containable
, org.refcodes.structure.Dictionary<String,T>
, org.refcodes.structure.Dictionary.MutableDictionary<String,T>
, org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<String,T,org.refcodes.structure.PathMap.PathMapBuilder<T>>
, org.refcodes.structure.Keys<String,T>
, org.refcodes.structure.Keys.MutableKeys<String,T>
, org.refcodes.structure.Keys.MutableValues<String,T>
, org.refcodes.structure.PathMap<String>
, org.refcodes.structure.PathMap.MutablePathMap<String>
, org.refcodes.structure.PathMap.PathMapBuilder<String>
, org.refcodes.structure.PropertiesAccessorMixin
, org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<String>
, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin
, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
ObfuscationResourcePropertiesBuilderDecorator
public abstract class AbstractObfuscationResourcePropertiesBuilderDecorator extends org.refcodes.configuration.AbstractResourcePropertiesBuilderDecorator<org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder> implements ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
flavor.org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixBuilder<B extends org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixBuilder<B>>, org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixMutator, org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixProperty
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
org.refcodes.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K extends Object,V extends Object,B extends org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixBuilder<B extends org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixBuilder<B>>, org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixMutator, org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixProperty
org.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>
ObfuscationProperties.MutableObfuscationProperties, ObfuscationProperties.ObfuscationPropertiesBuilder
ObfuscationResourceProperties.MutableObfuscationResourceProperties, ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
Modifier and Type | Field | Description |
---|---|---|
protected String |
_decryptPrefix |
|
protected String |
_encryptPrefix |
Constructor | Description |
---|---|
AbstractObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties) |
Decorates the provided
ResourceProperties.ResourcePropertiesBuilder with additional
ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder behavior or functionality. |
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
encryptAll() |
Encrypts all values prefixed accordingly as returned by
getEncryptPrefix() . |
protected Set<String> |
encryptSet() |
Returns a
Set of all the keys which's values are to be encrypted,
e.g. which's values are prefixed with the prefix as returned by
getEncryptPrefix() . |
String |
get(Object aKey) |
|
String |
getDecryptPrefix() |
|
String |
getEncryptPrefix() |
|
String |
put(String aKey,
String aValue) |
|
void |
setDecryptPrefix(String aDecryptPrefix) |
|
void |
setEncryptPrefix(String aEncryptPrefix) |
clear, containsValue, entrySet, putAll, remove
childrenOf, containsKey, getDelimiter, getProperties, isEmpty, keySet, retrieveFrom, retrieveTo, setProperties, size, toDataStructure, values
flush, isFlushable, loadFrom, loadFrom, reload, reload, saveTo, saveTo, seekFrom, toSerialized
toInstance, toInstance, toType, toType
withInsert, withInsert, withInsertFrom, withInsertTo
insert, insert, insertFrom, insertTo, putAll, toDump, toSourceCode, toSourceCode
withFlush, withFlushUnchecked
withDecryptPrefix, withEncryptPrefix, withInsert, withInsert, withInsertFrom, withInsertTo, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withPut, withPut, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom, withSeekFrom, withSeekFrom, withSeekFrom, withSeekFrom, withSeekFrom, withSeekFrom
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
directories, directories, entries, entries, fromExternalKey, getArray, getArray, getRootPath, hasParentPath, isArray, isArray, isDirectory, isEntry, isRecord, isRootPath, keySet, paths, paths, records, records, toDataStructure, toDataStructure, toExternalKey, toMap, toNormalizedPath, toNormalizedPath, toParentPath, toPath
insert, insert, insert, insert, insertFrom, insertFrom, insertTo, insertTo, put, putArray, putArray, removeAll
withInsert, withInsert, withInsertFrom, withInsertTo
childrenOf, getDelimiter, getType, retrieve, retrieveFrom, retrieveTo, toMap, toProperties, toPropertyPath
containsValue, delete, delete, insert, insert, insertFrom, insertTo, put, putAll, putAll, putAll
withInsert, withInsert, withInsertFrom, withInsertTo
containsKey, get, getBoolean, getBoolean, getByte, getByte, getCharacter, getCharacter, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getLong, getLong, getShort, getShort, use, useBoolean, useBoolean, useByte, useByte, useDouble, useDouble, useFloat, useFloat, useInteger, useInteger, useLong, useLong, useShort, useShort
withPut
fileTo, fileTo, fileTo, fileTo, fileTo, fileTo, fileTo, fileTo, flush, loadFrom, loadFrom, loadFrom, loadFrom, loadFrom, loadFrom, loadFrom, loadFrom, loadFrom, loadFrom, parseFrom, parseFrom, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, saveTo, seekFrom, seekFrom, seekFrom, seekFrom, seekFrom, seekFrom, toSerialized, toSerialized
protected String _decryptPrefix
protected String _encryptPrefix
public AbstractObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties)
ResourceProperties.ResourcePropertiesBuilder
with additional
ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality.
Changes applied to the provided ResourceProperties.ResourcePropertiesBuilder
affect
the decorator.aProperties
- The ResourceProperties
to be decorated.public String getEncryptPrefix()
getEncryptPrefix
in interface org.refcodes.mixin.EncryptPrefixAccessor
public void setEncryptPrefix(String aEncryptPrefix)
setEncryptPrefix
in interface org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixMutator
public String getDecryptPrefix()
getDecryptPrefix
in interface org.refcodes.mixin.DecryptPrefixAccessor
public void setDecryptPrefix(String aDecryptPrefix)
setDecryptPrefix
in interface org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixMutator
public String put(String aKey, String aValue)
put
in interface org.refcodes.structure.Keys.MutableValues<String,T extends Object>
put
in interface Map<String,T extends Object>
put
in class org.refcodes.configuration.AbstractPropertiesBuilderDecorator<org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder>
protected boolean encryptAll()
getEncryptPrefix()
. The properties do not contain any
"to-be-encrypted" values any more, them values then are encrypted. The
changes are only done "in-memory" and are not applied to the resource.
You must AbstractResourcePropertiesBuilderDecorator.flush()
or otherwise save the properties to make the
changes being reflected in the corresponding resources.protected Set<String> encryptSet()
Set
of all the keys which's values are to be encrypted,
e.g. which's values are prefixed with the prefix as returned by
getEncryptPrefix()
.Set
of all to be encrypted values.Copyright © 2018. All rights reserved.