Tabnine Logo
StringEncryptionSetup.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
me.itzsomebody.radon.transformers.obfuscators.strings.StringEncryptionSetup
constructor

Best Java code snippets using me.itzsomebody.radon.transformers.obfuscators.strings.StringEncryptionSetup.<init> (Showing top 3 results out of 315)

origin: ItzSomebody/Radon

public StringPool getStringPool() {
  return (stringEncryptionEnabledCheckBox.isSelected() && stringPoolCheckBox.isSelected())
      ? new StringPool(new StringEncryptionSetup(stringExclusions)) : null;
}
origin: ItzSomebody/Radon

private List<StringEncryption> getStringEncryptionTransformers() {
  Object o = map.get(ConfigurationSettings.STRING_ENCRYPTION.getValue());
  if (o == null)
    return null;
  if (!(o instanceof Map))
    throw new IllegalConfigurationValueException(ConfigurationSettings.STRING_ENCRYPTION.getValue(), Map.class,
        o.getClass());
  Map<String, Object> settings = (Map) o;
  if (!(boolean) settings.get("Enabled"))
    return null;
  String s = (String) settings.get("Mode");
  if (!"Light".equals(s) && !"Normal".equals(s) && !"Heavy".equals(s))
    throw new IllegalConfigurationValueException("Expected Light, Normal or Heavy as mode for string " +
        "encryption. Got " + s + " instead.");
  boolean pool = (boolean) settings.getOrDefault("StringPool", false);
  List<String> exclusions = (List) settings.getOrDefault("Exclusions", new ArrayList<String>());
  ArrayList<StringEncryption> things = new ArrayList<>();
  things.add(StringEncryption.getTransformerFromString(s, new StringEncryptionSetup(exclusions)));
  if (pool)
    things.add(new StringPool(new StringEncryptionSetup(exclusions)));
  return things;
}
origin: ItzSomebody/Radon

public StringEncryption getStringEncryption() {
  if (stringEncryptionEnabledCheckBox.isSelected()) {
    StringEncryptionSetup setup = new StringEncryptionSetup(stringExclusions);
    StringEncryption encryptionTransformer;
    switch (stringEncryptionTypeSelector.getSelectedIndex()) {
      case 0: {
        encryptionTransformer = new LightStringEncryption(setup);
        break;
      }
      case 1: {
        encryptionTransformer = new NormalStringEncryption(setup);
        break;
      }
      case 2: {
        encryptionTransformer = new HeavyStringEncryption(setup);
        break;
      }
      default: {
        throw new IllegalStateException(String.format("Bad string encryption type %d.",
            stringEncryptionTypeSelector.getSelectedIndex()));
      }
    }
    return encryptionTransformer;
  } else {
    return null;
  }
}
me.itzsomebody.radon.transformers.obfuscators.stringsStringEncryptionSetup<init>

Popular methods of StringEncryptionSetup

  • getExemptedStrings

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFileChooser (javax.swing)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now