Tabnine Logo
ApplicationSecurityEnforcer.enforceSecurity
Code IndexAdd Tabnine to your IDE (free)

How to use
enforceSecurity
method
in
org.apache.batik.util.ApplicationSecurityEnforcer

Best Java code snippets using org.apache.batik.util.ApplicationSecurityEnforcer.enforceSecurity (Showing top 6 results out of 315)

origin: fr.avianey.apache-xmlgraphics/batik

private void setPreferences() throws IOException {
  Iterator it = viewerFrames.iterator();
  while (it.hasNext()) {
    setPreferences((JSVGViewerFrame)it.next());
  }
  System.setProperty("proxyHost", preferenceManager.getString
            (PreferenceDialog.PREFERENCE_KEY_PROXY_HOST));
  System.setProperty("proxyPort", preferenceManager.getString
            (PreferenceDialog.PREFERENCE_KEY_PROXY_PORT));
  installCustomPolicyFile();
  securityEnforcer.enforceSecurity
    (preferenceManager.getBoolean
     (PreferenceDialog.PREFERENCE_KEY_ENFORCE_SECURE_SCRIPTING)
     );
}
origin: apache/batik

private void setPreferences() throws IOException {
  for (Object viewerFrame : viewerFrames) {
    setPreferences((JSVGViewerFrame) viewerFrame);
  }
  System.setProperty("proxyHost", preferenceManager.getString
            (PreferenceDialog.PREFERENCE_KEY_PROXY_HOST));
  System.setProperty("proxyPort", preferenceManager.getString
            (PreferenceDialog.PREFERENCE_KEY_PROXY_PORT));
  installCustomPolicyFile();
  securityEnforcer.enforceSecurity
    (preferenceManager.getBoolean
     (PreferenceDialog.PREFERENCE_KEY_ENFORCE_SECURE_SCRIPTING)
     );
}
origin: apache/batik

                  RASTERIZER_SECURITY_POLICY);
securityEnforcer.enforceSecurity(!c.getSecurityOff());
  System.out.println(USAGE);
  System.out.flush();
  securityEnforcer.enforceSecurity(false);
  return;
} finally {
  System.out.flush();
  securityEnforcer.enforceSecurity(false);
origin: fr.avianey.apache-xmlgraphics/batik

                  RASTERIZER_SECURITY_POLICY);
securityEnforcer.enforceSecurity(!c.getSecurityOff());
  System.out.println(USAGE);
  System.out.flush();
  securityEnforcer.enforceSecurity(false);
  return;
} finally {
  System.out.flush();
  securityEnforcer.enforceSecurity(false);
origin: org.apache.xmlgraphics/batik-svgrasterizer

                  RASTERIZER_SECURITY_POLICY);
securityEnforcer.enforceSecurity(!c.getSecurityOff());
  System.out.println(USAGE);
  System.out.flush();
  securityEnforcer.enforceSecurity(false);
  return;
} finally {
  System.out.flush();
  securityEnforcer.enforceSecurity(false);
origin: apache/batik

ase.enforceSecurity(true);
ase.enforceSecurity(false);
org.apache.batik.utilApplicationSecurityEnforcerenforceSecurity

Javadoc

Enforces security by installing a SecurityManager. This will throw a SecurityException if installing a SecurityManager requires overriding an existing SecurityManager. In other words, this method will not install a new SecurityManager if there is already one it did not install in place.

Popular methods of ApplicationSecurityEnforcer

  • <init>
    Creates a new ApplicationSecurityEnforcer.
  • getPolicyURL
    Returns the url for the default policy. This never returns null, but it may throw a NullPointerExcep
  • installSecurityManager
    Installs a SecurityManager on behalf of the application
  • setDevBase
    Position the app.dev.base property for expansion in the policy file used when App is running in its
  • setJarBase

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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