Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for SecurityException (0.3 sec)

  1. src/main/java/jcifs/smb1/Config.java

            Config.prp = new Properties( prp );
            try {
                Config.prp.putAll( System.getProperties() );
            } catch( SecurityException se ) {
                if( log.level > 1 )
                    log.println( "SecurityException: jcifs.smb1 will ignore System properties" );
            }
        }
    
        /**
         * Load the <code>Config</code> with properties from the stream
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

      private static final Method DELEGATE_METHOD;
    
      static {
        try {
          DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate");
          DELEGATE_METHOD.setAccessible(true);
        } catch (SecurityException e) {
          throw new RuntimeException(e);
        } catch (NoSuchMethodException e) {
          throw new AssertionError(e);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java

        for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
          try {
            try {
              urls.add(new File(entry).toURI().toURL());
            } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 13 20:26:15 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

      private static final Method DELEGATE_METHOD;
    
      static {
        try {
          DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate");
          DELEGATE_METHOD.setAccessible(true);
        } catch (SecurityException e) {
          throw new RuntimeException(e);
        } catch (NoSuchMethodException e) {
          throw new AssertionError(e);
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Jan 05 19:41:03 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/ClassPathUtil.java

        for (String entry : Splitter.on(PATH_SEPARATOR.value()).split(JAVA_CLASS_PATH.value())) {
          try {
            try {
              urls.add(new File(entry).toURI().toURL());
            } catch (SecurityException e) { // File.toURI checks to see if the file is a directory
              urls.add(new URL("file", null, new File(entry).getAbsolutePath()));
            }
          } catch (MalformedURLException e) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 13 20:26:15 GMT 2017
    - 2.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testRenaming_noPermissions() throws Exception {
        System.setSecurityManager(
            new SecurityManager() {
              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Callables.java

         * see if we have the modifyThread permission without catching an exception?
         */
        try {
          currentThread.setName(threadName);
          return true;
        } catch (SecurityException e) {
          return false;
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 18:32:03 GMT 2023
    - 4.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractFutureInnocuousThreadTest.java

            new SecurityManager() {
              @Override
              public void checkPermission(Permission p) {
                if (readSystemProperty.equals(p)) {
                  throw new SecurityException("Disallowed: " + p);
                }
              }
            };
        System.setSecurityManager(disallowPropertySecurityManager);
    
        settableFutureClass = classReloader.loadClass(SettableFuture.class.getName());
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 5.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testRenaming_noPermissions() throws Exception {
        System.setSecurityManager(
            new SecurityManager() {
              @Override
              public void checkAccess(Thread t) {
                throw new SecurityException();
              }
    
              @Override
              public void checkPermission(Permission perm) {
                // Do nothing so we can clear the security manager at the end
              }
            });
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

                if (readClassPathFiles.implies(p)) {
                  throw new SecurityException("Disallowed: " + p);
                }
              }
            };
        System.setSecurityManager(disallowFilesSecurityManager);
        try {
          file.exists();
          fail("Did not get expected SecurityException");
        } catch (SecurityException expected) {
        }
        ClassPath classPath = ClassPath.from(getClass().getClassLoader());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
Back to top