Package | Description |
---|---|
com.github.robtimus.obfuscation |
Contains classes and interfaces for obfuscating text.
|
com.github.robtimus.obfuscation.support |
Contains classes that can help with creating obfuscators.
|
Modifier and Type | Method and Description |
---|---|
static Obfuscator |
Obfuscator.all()
Returns an immutable obfuscator that replaces all characters with
* . |
static Obfuscator |
Obfuscator.all(char maskChar)
Returns an immutable obfuscator that replaces all characters with a specific character.
|
Obfuscator |
Obfuscator.PortionBuilder.build()
Creates an immutable obfuscator with the current settings of this builder.
|
static Obfuscator |
Obfuscator.fixedLength(int fixedLength)
Returns an immutable obfuscator that replaces all characters with a fixed number of
* . |
static Obfuscator |
Obfuscator.fixedLength(int fixedLength,
char maskChar)
Returns an immutable obfuscator that replaces all characters with a fixed number of a specific character.
|
static Obfuscator |
Obfuscator.fixedValue(String fixedValue)
Returns an immutable obfuscator that replaces all characters with a fixed value.
|
static Obfuscator |
Obfuscator.fromFunction(Function<? super CharSequence,? extends CharSequence> function)
Returns an obfuscator that uses a function to obfuscate text.
|
static Obfuscator |
Obfuscator.fromFunction(Obfuscator.ObfuscatorFunction function)
Returns an obfuscator that uses a function to obfuscate text.
|
static Obfuscator |
Obfuscator.none()
Returns an immutable obfuscator that does not obfuscate anything.
|
Obfuscator |
Obfuscator.SplitPoint.splitTo(Obfuscator beforeSplitPoint,
Obfuscator afterSplitPoint)
Creates an obfuscator that splits obfuscation at this split point.
|
Obfuscator |
Obfuscator.Prefix.then(Obfuscator other)
Returns an obfuscator that first uses the source of this object for the length of this prefix, then another obfuscator.
|
Modifier and Type | Method and Description |
---|---|
Obfuscator |
Obfuscator.SplitPoint.splitTo(Obfuscator beforeSplitPoint,
Obfuscator afterSplitPoint)
Creates an obfuscator that splits obfuscation at this split point.
|
Obfuscator |
Obfuscator.Prefix.then(Obfuscator other)
Returns an obfuscator that first uses the source of this object for the length of this prefix, then another obfuscator.
|
MapObfuscator.Builder<K,V> |
MapObfuscator.Builder.withDefaultObfuscator(Obfuscator obfuscator)
Sets the default obfuscator to use, for entries that have no specific obfuscator defined.
|
MapObfuscator.StringKeyedBuilder<V> |
MapObfuscator.StringKeyedBuilder.withDefaultObfuscator(Obfuscator obfuscator)
Sets the default obfuscator to use, for entries that have no specific obfuscator defined.
|
PropertiesObfuscator.Builder |
PropertiesObfuscator.Builder.withDefaultObfuscator(Obfuscator obfuscator)
Sets the default obfuscator to use, for properties that have no specific obfuscator defined.
|
MapObfuscator.Builder<K,V> |
MapObfuscator.Builder.withKey(K key,
Obfuscator obfuscator)
Adds a key to obfuscate the value for.
|
MapObfuscator.StringKeyedBuilder<V> |
MapObfuscator.StringKeyedBuilder.withKey(String key,
Obfuscator obfuscator)
Adds a key to obfuscate the value for.
|
MapObfuscator.StringKeyedBuilder<V> |
MapObfuscator.StringKeyedBuilder.withKey(String key,
Obfuscator obfuscator,
CaseSensitivity caseSensitivity)
Adds a key to obfuscate the value for.
|
PropertiesObfuscator.Builder |
PropertiesObfuscator.Builder.withProperty(String property,
Obfuscator obfuscator)
Adds a property to obfuscate.
|
PropertiesObfuscator.Builder |
PropertiesObfuscator.Builder.withProperty(String property,
Obfuscator obfuscator,
CaseSensitivity caseSensitivity)
Adds a property to obfuscate.
|
Constructor and Description |
---|
CachingObfuscatingWriter(Obfuscator obfuscator,
Appendable destination)
Creates a new writer.
|
CachingObfuscatingWriter(Obfuscator obfuscator,
Appendable destination,
int capacity)
Creates a new writer.
|
Copyright © 2020–2023. All rights reserved.