Map<String,T>
, ObfuscationProperties
, ObfuscationProperties.MutableObfuscationProperties
, ObfuscationProperties.ObfuscationPropertiesBuilder
, org.refcodes.configuration.Properties
, org.refcodes.configuration.Properties.MutableProperties
, org.refcodes.configuration.Properties.PropertiesBuilder
, 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
ObfuscationPropertiesBuilderDecorator
public abstract class AbstractObfuscationPropertiesBuilderDecorator extends org.refcodes.configuration.AbstractPropertiesBuilderDecorator<org.refcodes.configuration.Properties.PropertiesBuilder> implements ObfuscationProperties.ObfuscationPropertiesBuilder
ObfuscationProperties.ObfuscationPropertiesBuilder
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
ObfuscationProperties.MutableObfuscationProperties, ObfuscationProperties.ObfuscationPropertiesBuilder
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 |
---|---|
AbstractObfuscationPropertiesBuilderDecorator(org.refcodes.configuration.Properties.PropertiesBuilder aProperties) |
Decorates the provided
Properties with additional
ObfuscationProperties 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
toInstance, toInstance, toType, toType
withInsert, withInsert, withInsertFrom, withInsertTo
insert, insert, insertFrom, insertTo, putAll, toDump, toSourceCode, toSourceCode
withDecryptPrefix, withEncryptPrefix, withInsert, withInsert, withInsertFrom, withInsertTo, withPut, withPut, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom
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
protected String _decryptPrefix
protected String _encryptPrefix
public AbstractObfuscationPropertiesBuilderDecorator(org.refcodes.configuration.Properties.PropertiesBuilder aProperties)
Properties
with additional
ObfuscationProperties
behavior or functionality. Changes applied
to the provided Properties
affect the decorator.aProperties
- The Properties
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.Properties.PropertiesBuilder>
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 save the properties yourself to persist the changes.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.