Class ObfuscationResourcePropertiesBuilderDecorator
- java.lang.Object
-
- org.refcodes.configuration.AbstractPropertiesDecorator<T>
-
- org.refcodes.configuration.AbstractPropertiesBuilderDecorator<T>
-
- org.refcodes.configuration.AbstractResourcePropertiesBuilderDecorator<org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder>
-
- org.refcodes.configuration.ext.obfuscation.AbstractObfuscationResourcePropertiesBuilderDecorator
-
- org.refcodes.configuration.ext.obfuscation.ObfuscationResourcePropertiesBuilderDecorator
-
- All Implemented Interfaces:
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.AnnotatorAccessor
,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
public class ObfuscationResourcePropertiesBuilderDecorator extends AbstractObfuscationResourcePropertiesBuilderDecorator implements ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
TheObfuscationResourcePropertiesBuilderDecorator
represents a decorator forResourceProperties.ResourcePropertiesBuilder
instances by implementing theObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
interface. Properties marked in the resource as "to be decrypted" are decrypted (e.g. with a host individual key). Those encrypted properties are decrypted "on-the-fly" (in memory only) upon accessing the according property. Retrieving a value viaAbstractObfuscationResourcePropertiesBuilderDecorator.get(Object)
(or the like), which is prefixed with "decrypt:" (default), will be decrypted accordingly before passed back to the caller. The prefix may be changed by invoking the according implementaion's constructor or the according methods. Properties marked in the resource as "to be encrypted" by being prefixed with "encrypt:" (default) are encrypted (e.g. with a host individual key) when being added and instead are prefixed with "decrypt:" (default). Retrieving a value viaAbstractObfuscationResourcePropertiesBuilderDecorator.get(Object)
(or the like), which is prefixed with "decrypt:" (default), will be decrypted accordingly before passed back to the caller. The prefix may be changed by invoking the according implementaion's constructor. If the encapsulatedResourceProperties.ResourcePropertiesBuilder
instance can be flushed as ofFlushable.isFlushable()
, then any properties which have been encrypted as of the "encrypt:" prefix (default) upon instantiation are written back to the resource, though this time encrypted, having now the prefix "decrypt:" (default). By public (if not configured otherwise) the prefixPrefix.DECRYPT
is used as decrypt prefix (as ofPrefix.getPrefix()
). Also by default (if not configured otherwise) the prefixPrefix.ENCRYPT
is used as encrypt prefix (as ofPrefix.getPrefix()
) constructor or the according methods.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.AnnotatorAccessor
org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B extends org.refcodes.mixin.AnnotatorAccessor.AnnotatorBuilder<B>>, org.refcodes.mixin.AnnotatorAccessor.AnnotatorMutator, org.refcodes.mixin.AnnotatorAccessor.AnnotatorProperty
-
Nested classes/interfaces inherited from interface org.refcodes.structure.CanonicalMap
org.refcodes.structure.CanonicalMap.CanonicalMapBuilder, org.refcodes.structure.CanonicalMap.MutableCanonicalMap
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.DecryptPrefixAccessor
org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixBuilder<B extends org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixBuilder<B>>, org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixMutator, org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixProperty
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.DelimiterAccessor
org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B extends org.refcodes.mixin.DelimiterAccessor.DelimiterBuilder<B>>, org.refcodes.mixin.DelimiterAccessor.DelimiterMutator, org.refcodes.mixin.DelimiterAccessor.DelimiterProperty
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary
org.refcodes.structure.Dictionary.MutableDictionary<K extends Object,V extends Object>
-
Nested classes/interfaces inherited from interface org.refcodes.structure.Dictionary.MutableDictionary
org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K extends Object,V extends Object,B extends org.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<K,V,B>>
-
Nested classes/interfaces inherited from interface org.refcodes.mixin.EncryptPrefixAccessor
org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixBuilder<B extends org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixBuilder<B>>, org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixMutator, org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.Flushable
org.refcodes.component.Flushable.FlushBuilder<B extends org.refcodes.component.Flushable.FlushBuilder<B>>
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.ext.obfuscation.ObfuscationProperties
ObfuscationProperties.MutableObfuscationProperties, ObfuscationProperties.ObfuscationPropertiesBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.ext.obfuscation.ObfuscationResourceProperties
ObfuscationResourceProperties.MutableObfuscationResourceProperties, ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PathMap
org.refcodes.structure.PathMap.MutablePathMap<T extends Object>, org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>
-
Nested classes/interfaces inherited from interface org.refcodes.configuration.Properties
org.refcodes.configuration.Properties.MutableProperties, org.refcodes.configuration.Properties.PropertiesBuilder
-
Nested classes/interfaces inherited from interface org.refcodes.structure.PropertiesAccessorMixin
org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<T extends Object>, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMixin, org.refcodes.structure.PropertiesAccessorMixin.PropertiesMutatorMixin
-
-
Field Summary
-
Fields inherited from class org.refcodes.configuration.ext.obfuscation.AbstractObfuscationResourcePropertiesBuilderDecorator
_decryptPrefix, _encryptPrefix
-
-
Constructor Summary
Constructors Constructor Description ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties)
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality.ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aSecret)
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality.ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aDecryptPrefix, String aEncryptPrefix)
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality.ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aDecryptPrefix, String aEncryptPrefix, String aSecret)
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality.ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aDecryptPrefix, String aEncryptPrefix, org.refcodes.runtime.SystemContext aObfuscationMode)
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality.ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, org.refcodes.runtime.SystemContext aObfuscationMode)
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality.
-
Method Summary
-
Methods inherited from class org.refcodes.configuration.ext.obfuscation.AbstractObfuscationResourcePropertiesBuilderDecorator
encryptAll, encryptSet, get, getDecryptPrefix, getEncryptPrefix, put, setDecryptPrefix, setEncryptPrefix
-
Methods inherited from class org.refcodes.configuration.AbstractPropertiesBuilderDecorator
clear, containsValue, entrySet, putAll, remove
-
Methods inherited from class org.refcodes.configuration.AbstractPropertiesDecorator
containsKey, getAnnotator, getDelimiter, getProperties, isEmpty, keySet, retrieveFrom, retrieveTo, setProperties, size, toDataStructure, values
-
Methods inherited from class org.refcodes.configuration.AbstractResourcePropertiesBuilderDecorator
flush, isFlushable, loadFrom, loadFrom, reload, reload, saveTo, saveTo, seekFrom, toSerialized
-
Methods inherited from interface org.refcodes.structure.CanonicalMap
getBoolean, getBoolean, getBooleanOr, getBooleanOr, getByte, getByte, getByteOr, getByteOr, getCharacter, getCharacter, getCharacterOr, getCharacterOr, getDouble, getDouble, getDoubleOr, getDoubleOr, getFloat, getFloat, getFloatOr, getFloatOr, getInteger, getInteger, getIntegerOr, getIntegerOr, getLong, getLong, getLongOr, getLongOr, getShort, getShort, getShortOr, getShortOr, queryBetween, toInstance, toInstance, toMap, toProperties, toType, toType
-
Methods inherited from interface org.refcodes.structure.CanonicalMap.CanonicalMapBuilder
withMerge, withMerge, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeBetween, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeFrom, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo, withMergeTo
-
Methods inherited from interface org.refcodes.structure.CanonicalMap.MutableCanonicalMap
insert, insertBetween, insertFrom, insertTo, put, put, putAll, putBoolean, putBoolean, putByte, putByte, putDouble, putDouble, putFloat, putFloat, putInteger, putInteger, putLong, putLong, putShort, putShort, removeFrom, toDump, toSourceCode, toSourceCode
-
Methods inherited from interface org.refcodes.mixin.DecryptPrefixAccessor.DecryptPrefixMutator
setDecryptPrefix
-
Methods inherited from interface org.refcodes.mixin.EncryptPrefixAccessor.EncryptPrefixMutator
setEncryptPrefix
-
Methods inherited from interface org.refcodes.component.Flushable.FlushBuilder
withFlush, withFlushUnchecked
-
Methods inherited from interface org.refcodes.configuration.ext.obfuscation.ObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
withDecryptPrefix, withEncryptPrefix, withInsert, withInsertBetween, withInsertFrom, withInsertTo, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withLoadFrom, withPutBoolean, withPutByte, withPutDouble, withPutFloat, withPutInteger, withPutLong, withPutShort, withRemoveFrom, withSeekFrom, withSeekFrom, withSeekFrom, withSeekFrom, withSeekFrom, withSeekFrom
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.refcodes.structure.PathMap
children, children, children, children, children, children, containsKey, containsKey, containsKey, dirs, dirs, dirs, dirs, dirs, dirs, findPaths, fromExternalPath, get, get, get, getArray, getArray, getArray, getArray, getArray, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getArrayIndexes, getDirAt, getDirAt, getDirAt, getDirAt, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getDirIndexes, getRootPath, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, getValueAt, hasChildren, hasChildren, hasChildren, hasChildren, hasChildren, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasDirAt, hasParentPath, hasPath, hasPath, hasPath, hasPath, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, hasValueAt, isArray, isArray, isArray, isArray, isArray, isArray, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isArrayIndex, isChild, isChild, isChild, isChild, isDir, isDir, isDir, isDir, isDir, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isDirIndex, isEqualTo, isLeaf, isLeaf, isLeaf, isLeaf, isLeaf, isRootPath, keySet, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastArrayIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, lastDirIndex, leaves, leaves, leaves, leaves, leaves, leaves, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextArrayIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, nextDirIndex, paths, paths, paths, paths, paths, paths, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, queryPaths, sortedKeys, toDataStructure, toDataStructure, toExternalPath, toLeaf, toMap, toNormalizedPath, toParentPath, toPath, toPath, toPath, toPathElements, toPathList, toPathStack, toPropertyPath
-
Methods inherited from interface org.refcodes.structure.PathMap.MutablePathMap
appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendDirTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, appendValueTo, delete, delete, delete, delete, insert, insert, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertBetween, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertFrom, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, insertTo, merge, merge, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeBetween, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, mergeTo, put, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putArray, putValueAt, putValueAt, putValueAt, putValueAt, putValueAt, remove, remove, remove, removeValueAt, removeValueAt, removeValueAt, removeValueAt, removeValueAt
-
Methods inherited from interface org.refcodes.configuration.Properties
getAnnotator, getDelimiter, getType, query, query, query, query, query, queryBetween, queryBetween, queryBetween, queryBetween, queryBetween, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryFrom, queryTo, queryTo, queryTo, queryTo, queryTo, queryTo, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveBetween, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveFrom, retrieveTo, retrieveTo, retrieveTo, retrieveTo, retrieveTo
-
Methods inherited from interface org.refcodes.configuration.Properties.MutableProperties
containsValue, delete, delete, getDirAt, getDirAt, insert, insertBetween, insertFrom, insertTo, put, putAll, putAll, putAll, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, putDirAt, removeAll, removeAll, removeAll, removeAll, removeAll, removeAll, removeDirAt, removeDirAt, removeDirAt, removeDirAt, removeDirAt, removeFrom, removeFrom, removeFrom, removeFrom, removePaths, removePaths
-
Methods inherited from interface org.refcodes.configuration.Properties.PropertiesBuilder
withInsert, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertBetween, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertFrom, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withInsertTo, withPut, withPutBoolean, withPutBoolean, withPutByte, withPutByte, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDirAt, withPutDouble, withPutDouble, withPutFloat, withPutFloat, withPutInteger, withPutInteger, withPutLong, withPutLong, withPutShort, withPutShort, withRemoveFrom, withRemoveFrom, withRemoveFrom, withRemoveFrom
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin
asArray, asArray, asArray, asArray, asBooleanArray, asBooleanArray, asBooleanArray, asBooleanArray, asByteArray, asByteArray, asByteArray, asByteArray, asCharacterArray, asCharacterArray, asCharacterArray, asCharacterArray, asDoubleArray, asDoubleArray, asDoubleArray, asDoubleArray, asFloatArray, asFloatArray, asFloatArray, asFloatArray, asIntegerArray, asIntegerArray, asIntegerArray, asIntegerArray, asLongArray, asLongArray, asLongArray, asLongArray, asShortArray, asShortArray, asShortArray, asShortArray, getBoolean, getBoolean, getBooleanOr, getBooleanOr, getByte, getByte, getByteOr, getByteOr, getCharacter, getCharacter, getCharacterOr, getCharacterOr, getDouble, getDouble, getDoubleOr, getDoubleOr, getFloat, getFloat, getFloatOr, getFloatOr, getInteger, getInteger, getIntegerOr, getIntegerOr, getLong, getLong, getLongOr, getLongOr, getShort, getShort, getShortOr, getShortOr
-
Methods inherited from interface org.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin
withPut
-
Methods inherited from interface org.refcodes.configuration.ResourceProperties
reload, reload, toSerialized, toSerialized, toSerialized
-
Methods inherited from interface org.refcodes.configuration.ResourceProperties.MutableResoureProperties
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, seekFrom, seekFrom, seekFrom, toSerialized
-
-
-
-
Constructor Detail
-
ObfuscationResourcePropertiesBuilderDecorator
public ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties) throws org.refcodes.component.OpenException
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality. Changes applied to the providedResourceProperties.ResourcePropertiesBuilder
affect the decorator. A host specific secret is used to encrypt and decrypt the according properties.- Parameters:
aProperties
- TheResourceProperties.ResourcePropertiesBuilder
to be decorated.- Throws:
org.refcodes.component.OpenException
- Thrown in case opening the resources for writing back encrypted properties failed.
-
ObfuscationResourcePropertiesBuilderDecorator
public ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aSecret) throws org.refcodes.component.OpenException
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality. Changes applied to the providedResourceProperties.ResourcePropertiesBuilder
affect the decorator. The given secret is used to encrypt and decrypt the according properties.- Parameters:
aProperties
- TheResourceProperties
to be decorated.aSecret
- The secret to use when encrypting and decrypting the according properties.- Throws:
org.refcodes.component.OpenException
- Thrown in case opening the resources for writing back encrypted properties failed.
-
ObfuscationResourcePropertiesBuilderDecorator
public ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aDecryptPrefix, String aEncryptPrefix) throws org.refcodes.component.OpenException
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality. Changes applied to the providedResourceProperties.ResourcePropertiesBuilder
affect the decorator. A host specific secret is used to encrypt and decrypt the according properties.- Parameters:
aProperties
- TheResourceProperties.ResourcePropertiesBuilder
to be decorated.aDecryptPrefix
- The decrypt prefix to be used for values which are to be decrypted, e.g. "decrypt:".aEncryptPrefix
- The decrypt prefix to be used. for values which are to be encrypted, e.g. "encrypt:".- Throws:
org.refcodes.component.OpenException
- Thrown in case opening the resources for writing back encrypted properties failed.
-
ObfuscationResourcePropertiesBuilderDecorator
public ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aDecryptPrefix, String aEncryptPrefix, String aSecret) throws org.refcodes.component.OpenException
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality. Changes applied to the providedResourceProperties.ResourcePropertiesBuilder
affect the decorator. The given secret is used to encrypt and decrypt the according properties.- Parameters:
aProperties
- TheResourceProperties
to be decorated.aDecryptPrefix
- The decrypt prefix to be used for values which are to be decrypted, e.g. "decrypt:".aEncryptPrefix
- The decrypt prefix to be used. for values which are to be encrypted, e.g. "encrypt:".aSecret
- The secret to use when encrypting and decrypting the according properties.- Throws:
org.refcodes.component.OpenException
- Thrown in case opening the resources for writing back encrypted properties failed.
-
ObfuscationResourcePropertiesBuilderDecorator
public ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, String aDecryptPrefix, String aEncryptPrefix, org.refcodes.runtime.SystemContext aObfuscationMode) throws org.refcodes.component.OpenException
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality. Changes applied to the providedResourceProperties
affect the decorator. A host specific secret is used to encrypt and decrypt the according properties.- Parameters:
aProperties
- TheResourceProperties.ResourcePropertiesBuilder
to be decorated.aDecryptPrefix
- The decrypt prefix to be used for values which are to be decrypted, e.g. "decrypt:".aEncryptPrefix
- The decrypt prefix to be used. for values which are to be encrypted, e.g. "encrypt:".aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.- Throws:
org.refcodes.component.OpenException
- Thrown in case opening the resources for writing back encrypted properties failed.
-
ObfuscationResourcePropertiesBuilderDecorator
public ObfuscationResourcePropertiesBuilderDecorator(org.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder aProperties, org.refcodes.runtime.SystemContext aObfuscationMode) throws org.refcodes.component.OpenException
Decorates the providedResourceProperties.ResourcePropertiesBuilder
with additionalObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
behavior or functionality. Changes applied to the providedResourceProperties
affect the decorator. A host specific secret is used to encrypt and decrypt the according properties.- Parameters:
aProperties
- TheResourceProperties.ResourcePropertiesBuilder
to be decorated.aObfuscationMode
- TheSystemContext
specifies which level of obfuscation is to be used when encountering upon obfuscated properties: E.g. obfuscation may be bound to the host, the "secret" used for obfuscation being the same for all applications on the same host or obfuscation may be bound to the application, being different for different applications on the same host.- Throws:
org.refcodes.component.OpenException
- Thrown in case opening the resources for writing back encrypted properties failed.
-
-
Method Detail
-
withPut
public ObfuscationResourcePropertiesBuilderDecorator withPut(Object aPath, String aValue)
- Specified by:
withPut
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPut
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPut
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPut
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPut
public ObfuscationResourcePropertiesBuilderDecorator withPut(Object[] aPathElements, String aValue) throws NumberFormatException
- Specified by:
withPut
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPut
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPut
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.structure.PathMap.PathMapBuilder<String>
- Specified by:
withPut
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPut
in classAbstractObfuscationResourcePropertiesBuilderDecorator
- Throws:
NumberFormatException
-
withPut
public ObfuscationResourcePropertiesBuilderDecorator withPut(org.refcodes.structure.Relation<String,String> aProperty)
- Specified by:
withPut
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPut
in interfaceorg.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<String,T extends Object,org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>>
- Specified by:
withPut
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPut
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.structure.PathMap.PathMapBuilder<String>
- Specified by:
withPut
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPut
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPut
public ObfuscationResourcePropertiesBuilderDecorator withPut(String aKey, String aValue)
- Specified by:
withPut
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPut
in interfaceorg.refcodes.structure.Dictionary.MutableDictionary.DictionaryBuilder<String,T extends Object,org.refcodes.structure.PathMap.PathMapBuilder<T extends Object>>
- Specified by:
withPut
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPut
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.structure.PathMap.PathMapBuilder<String>
- Specified by:
withPut
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.structure.PropertiesAccessorMixin.PropertiesBuilderMixin<String>
- Specified by:
withPut
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPut
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPut
public ObfuscationResourcePropertiesBuilderDecorator withPut(String[] aPathElements, String aValue) throws NumberFormatException
- Specified by:
withPut
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPut
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPut
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.structure.PathMap.PathMapBuilder<String>
- Specified by:
withPut
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPut
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPut
in classAbstractObfuscationResourcePropertiesBuilderDecorator
- Throws:
NumberFormatException
-
withPutBoolean
public ObfuscationResourcePropertiesBuilderDecorator withPutBoolean(Object[] aPathElements, Boolean aValue)
- Specified by:
withPutBoolean
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutBoolean
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutBoolean
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutBoolean
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutBoolean
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutBoolean
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutBoolean
public ObfuscationResourcePropertiesBuilderDecorator withPutBoolean(String[] aPathElements, Boolean aValue)
- Specified by:
withPutBoolean
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutBoolean
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutBoolean
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutBoolean
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutBoolean
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutBoolean
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutByte
public ObfuscationResourcePropertiesBuilderDecorator withPutByte(Object[] aPathElements, Byte aValue)
- Specified by:
withPutByte
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutByte
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutByte
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutByte
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutByte
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutByte
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutByte
public ObfuscationResourcePropertiesBuilderDecorator withPutByte(String[] aPathElements, Byte aValue)
- Specified by:
withPutByte
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutByte
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutByte
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutByte
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutByte
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutByte
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutDouble
public ObfuscationResourcePropertiesBuilderDecorator withPutDouble(Object[] aPathElements, Double aValue)
- Specified by:
withPutDouble
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutDouble
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutDouble
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutDouble
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutDouble
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutDouble
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutDouble
public ObfuscationResourcePropertiesBuilderDecorator withPutDouble(String[] aPathElements, Double aValue)
- Specified by:
withPutDouble
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutDouble
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutDouble
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutDouble
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutDouble
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutDouble
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutFloat
public ObfuscationResourcePropertiesBuilderDecorator withPutFloat(Object[] aPathElements, Float aValue)
- Specified by:
withPutFloat
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutFloat
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutFloat
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutFloat
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutFloat
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutFloat
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutFloat
public ObfuscationResourcePropertiesBuilderDecorator withPutFloat(String[] aPathElements, Float aValue)
- Specified by:
withPutFloat
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutFloat
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutFloat
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutFloat
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutFloat
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutFloat
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutInteger
public ObfuscationResourcePropertiesBuilderDecorator withPutInteger(Object[] aPathElements, Integer aValue)
- Specified by:
withPutInteger
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutInteger
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutInteger
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutInteger
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutInteger
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutInteger
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutInteger
public ObfuscationResourcePropertiesBuilderDecorator withPutInteger(String[] aPathElements, Integer aValue)
- Specified by:
withPutInteger
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutInteger
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutInteger
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutInteger
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutInteger
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutInteger
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutLong
public ObfuscationResourcePropertiesBuilderDecorator withPutLong(Object[] aPathElements, Long aValue)
- Specified by:
withPutLong
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutLong
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutLong
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutLong
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutLong
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutLong
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutLong
public ObfuscationResourcePropertiesBuilderDecorator withPutLong(String[] aPathElements, Long aValue)
- Specified by:
withPutLong
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutLong
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutLong
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutLong
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutLong
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutLong
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutShort
public ObfuscationResourcePropertiesBuilderDecorator withPutShort(Object[] aPathElements, Short aValue)
- Specified by:
withPutShort
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutShort
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutShort
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutShort
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutShort
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutShort
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
withPutShort
public ObfuscationResourcePropertiesBuilderDecorator withPutShort(String[] aPathElements, Short aValue)
- Specified by:
withPutShort
in interfaceorg.refcodes.structure.CanonicalMap.CanonicalMapBuilder
- Specified by:
withPutShort
in interfaceObfuscationProperties.ObfuscationPropertiesBuilder
- Specified by:
withPutShort
in interfaceObfuscationResourceProperties.ObfuscationResourcePropertiesBuilder
- Specified by:
withPutShort
in interfaceorg.refcodes.configuration.Properties.PropertiesBuilder
- Specified by:
withPutShort
in interfaceorg.refcodes.configuration.ResourceProperties.ResourcePropertiesBuilder
- Specified by:
withPutShort
in classAbstractObfuscationResourcePropertiesBuilderDecorator
-
-