Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 16 of 16 for SecurityException (0.12 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/org/codelibs/core/io/FileUtil.java

         * Example usage:
         * </p>
         * <pre>
         * Path baseDir = Paths.get("/var/app/data");
         * Path userPath = Paths.get(userInput);
         * if (!FileUtil.isPathSafe(userPath, baseDir)) {
         *     throw new SecurityException("Path traversal attempt detected");
         * }
         * </pre>
         *
         * @param pathToCheck the path to validate (must not be {@literal null})
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 13.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/hash/LittleEndianByteArray.java

         *
         * @return an Unsafe instance if successful
         */
        private static Unsafe getUnsafe() {
          try {
            return Unsafe.getUnsafe();
          } catch (SecurityException tryReflectionInstead) {
            // We'll try reflection instead.
          }
          try {
            return AccessController.doPrivileged(
                (PrivilegedExceptionAction<Unsafe>)
                    () -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/hash/Striped64.java

       * to Unsafe.getUnsafe when integrating into a jdk.
       *
       * @return a sun.misc.Unsafe
       */
      private static Unsafe getUnsafe() {
        try {
          return Unsafe.getUnsafe();
        } catch (SecurityException tryReflectionInstead) {
        }
        try {
          return AccessController.doPrivileged(
              new PrivilegedExceptionAction<Unsafe>() {
                @Override
                public Unsafe run() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 15 22:17:15 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/UnsignedBytes.java

              return OFFSET_UNSAFE_APPROACH_IS_UNAVAILABLE;
            }
          }
    
          private static @Nullable Unsafe getUnsafe() {
            try {
              return Unsafe.getUnsafe();
            } catch (SecurityException e) {
              // that's okay; try reflection instead
            }
            try {
              return doPrivileged(
                  (PrivilegedExceptionAction<Unsafe>)
                      () -> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

      val proxy: Proxy? = builder.proxy
    
      @get:JvmName("proxySelector")
      val proxySelector: ProxySelector =
        when {
          // Defer calls to ProxySelector.getDefault() because it can throw a SecurityException.
          builder.proxy != null -> NullProxySelector
    
          else -> builder.proxySelector ?: ProxySelector.getDefault() ?: NullProxySelector
        }
    
      @get:JvmName("proxyAuthenticator")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 51.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/util/concurrent/MoreExecutors.java

        // TODO(b/139726489): Confirm that null is impossible here.
        Thread result = requireNonNull(platformThreadFactory().newThread(runnable));
        try {
          result.setName(name);
        } catch (SecurityException e) {
          // OK if we can't set the name in this environment.
        }
        return result;
      }
    
      // TODO(lukes): provide overloads for ListeningExecutorService? ListeningScheduledExecutorService?
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 28 22:39:02 GMT 2026
    - 45.6K bytes
    - Click Count (0)
Back to Top