Tabnine Logo
SerializablePermission
Code IndexAdd Tabnine to your IDE (free)

How to use
SerializablePermission
in
java.io

Best Java code snippets using java.io.SerializablePermission (Showing top 8 results out of 315)

origin: org.jboss.openjdk-orb/openjdk-orb

private static Void checkPermission() {
  SecurityManager sm = System.getSecurityManager();
  if (sm != null) {
    sm.checkPermission(new SerializablePermission(
        "enableSubclassImplementation"));
  }
  return null;
}
origin: au.net.zeus.jgdms/jgdms-platform

@Override
public Object run() {
  new SerializablePermission("enableSubclassImplementation").checkGuard(null);
  new SerializablePermission("enableSubstitution").checkGuard(null);
  return null;
}
});
origin: org.jboss.openjdk-orb/openjdk-orb

private static Void checkPermission() {
  SecurityManager sm = System.getSecurityManager();
  if (sm != null) {
    if (!allowSubclass)
      sm.checkPermission(new
        SerializablePermission("enableSubclassImplementation"));
  }
  return null;
}
origin: org.jboss.openjdk-orb/openjdk-orb

private static Void checkPermission() {
  SecurityManager sm = System.getSecurityManager();
  if (sm != null) {
    if (!allowSubclass)
      sm.checkPermission(new
        SerializablePermission("enableSubclassImplementation"));
  }
  return null;
}
private OutputStream(Void ignore) { }
origin: org.jboss.openjdk-orb/openjdk-orb

  private static void isCustomSerializationPermitted() {
    SecurityManager sm = System.getSecurityManager();
    if (!allowCustomValueHandler) {
      if ( sm != null) {
        // check that a serialization permission has been
        // set to allow the loading of the Util delegate
        // which provides access to custom ValueHandler
        sm.checkPermission(new SerializablePermission(
            "enableCustomValueHandler"));
      }
    }
  }
}
origin: com.fitbur.core/core-jdk

@RequiresNonNull("name")
public SerializablePermission build() {
  return new SerializablePermission(name, actions);
}
origin: jpos/jPOS

@Test
public void testCommitThrowsNullPointerException2() throws Throwable {
  LogEvent evt = new LogEvent();
  try {
    transactionManager.commit(1, 100L, new SerializablePermission("testTransactionManagerParam1"), null, true, evt, null);
    fail("Expected NullPointerException to be thrown");
  } catch (NullPointerException ex) {
    assertNull("ex.getMessage()", ex.getMessage());
  }
}
origin: org.rhq/rhq-script-bindings

add(new SerializablePermission("creator"));
add(new SerializablePermission("allowSerializationReflection"));
add(new SerializablePermission("enableSubclassImplementation"));
add(new RuntimePermission("reflectionFactoryAccess"));
java.ioSerializablePermission

Javadoc

Legacy security code; do not use.

Most used methods

  • <init>
    Creates a new SerializablePermission object with the specified name. The name is the symbolic name o
  • checkGuard

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • CodeWhisperer alternatives
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