Package org.refcodes.security.alt.chaos
Class ChaosOptionsImpl.Builder
java.lang.Object
org.refcodes.security.alt.chaos.ChaosOptionsImpl.Builder
-
Field Summary
Fields -
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 theChaosOptionsImpl.isMutateS()option.withRndPrefixSize(short aRndPrefixSize) Sets the prefix size for theChaosOptionsImpl.getRndPrefixSize()option.withSalted(boolean isSalted) Enables or disables theChaosOptionsImpl.isSalted()option.withXorNext(boolean isXorNext) Enables or disables theChaosOptionsImpl.isXorNext()option.
-
Field Details
-
rndPrefixSize
public short rndPrefixSize
-
-
Method Details
-
withXorNext
Enables or disables theChaosOptionsImpl.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 theChaosOptionsImpl.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 theChaosOptionsImpl.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 theChaosOptionsImpl.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
-