Package org.refcodes.security.alt.chaos
Class ChaosOptionsBuilder.Builder
java.lang.Object
org.refcodes.security.alt.chaos.ChaosOptionsBuilder.Builder
- Enclosing class:
- ChaosOptionsBuilder
Builder to build
ChaosOptionsBuilder
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Determines whether an ADD operation of theChaosKey
's S value is to be applied with the current byte value (using signed bytes -128 to +127).withMutateS
(boolean isMutateS) Enables or disables theChaosOptionsBuilder.isMutateS()
option.withRndPrefixSize
(short aRndPrefixSize) Sets the prefix size for theChaosOptionsBuilder.getRndPrefixSize()
option.withSalted
(boolean isSalted) Enables or disables theChaosOptionsBuilder.isSalted()
option.withXorNext
(boolean isXorNext) Enables or disables theChaosOptionsBuilder.isXorNext()
option.
-
Field Details
-
rndPrefixSize
public short rndPrefixSize
-
-
Method Details
-
withXorNext
Enables or disables theChaosOptionsBuilder.isXorNext()
option.- Parameters:
isXorNext
- True in case XOR obfuscation is to be applied.- Returns:
- This builder as of the builder pattern.
-
withMutateS
Enables or disables theChaosOptionsBuilder.isMutateS()
option.- Parameters:
isMutateS
- True in case MUTATION obfuscation is to be applied.- Returns:
- This builder as of the builder pattern.
-
withSalted
Enables or disables theChaosOptionsBuilder.isSalted()
option.- Parameters:
isSalted
- True in case MUTATION obfuscation is to be applied.- Returns:
- This builder as of the builder pattern.
-
withRndPrefixSize
Sets the prefix size for theChaosOptionsBuilder.getRndPrefixSize()
option. Valid values range from {1..256} representable by one byte as of {0x00..0xFF}.- Parameters:
aRndPrefixSize
- The size of the random bytes in case the PREFIX option is to be applied.- Returns:
- This builder as of the builder pattern.
-
build
Determines whether an ADD operation of theChaosKey
's S value is to be applied with the current byte value (using signed bytes -128 to +127).- Returns:
- the chaos metrics builder
-