congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SerializablePermission.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
java.io.SerializablePermission
constructor

Best Java code snippets using java.io.SerializablePermission.<init> (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: 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: au.net.zeus.jgdms/jgdms-platform

@Override
public Object run() {
  new SerializablePermission("enableSubclassImplementation").checkGuard(null);
  new SerializablePermission("enableSubstitution").checkGuard(null);
  return null;
}
});
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<init>

Javadoc

Creates a new SerializablePermission with the specified name. The name is the symbolic name of the SerializablePermission, such as "enableSubstitution", etc.

Popular methods of SerializablePermission

  • checkGuard

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • Sublime Text for Python
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