Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for SetPolicy (0.19 sec)

  1. android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

          return;
        }
        Policy oldPolicy = Policy.getPolicy();
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          Policy.setPolicy(new PermissivePolicy());
          System.setSecurityManager(new SecurityManager());
          doTestUnloadable();
        } finally {
          System.setSecurityManager(oldSecurityManager);
          Policy.setPolicy(oldPolicy);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            Policy.setPolicy(savedPolicy);
          }
        } else {
          Policy savedPolicy = Policy.getPolicy();
          AdjustablePolicy policy = new AdjustablePolicy(permissions);
          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        forceConnectionsToExpire(pool, expireSooner)
        assertThat(pool.connectionCount()).isEqualTo(1)
      }
    
      private fun setPolicy(
        pool: RealConnectionPool,
        address: Address,
        policy: ConnectionPool.AddressPolicy,
      ) {
        pool.setPolicy(address, policy)
        taskFaker.runTasks()
      }
    
      private fun evictAllConnections(pool: RealConnectionPool) {
        pool.evictAll()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

      }
    
      /**
       * Sets a policy that applies to [address].
       * Overwrites any existing policy for that address.
       */
      @ExperimentalOkHttpApi
      fun setPolicy(
        address: Address,
        policy: AddressPolicy,
      ) {
        delegate.setPolicy(address, policy)
      }
    
      /**
       * A policy for how the pool should treat a specific address.
       */
      class AddressPolicy(
        /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/FinalizableReferenceQueueClassLoaderUnloadingTest.java

          return;
        }
        Policy oldPolicy = Policy.getPolicy();
        SecurityManager oldSecurityManager = System.getSecurityManager();
        try {
          Policy.setPolicy(new PermissivePolicy());
          System.setSecurityManager(new SecurityManager());
          doTestUnloadable();
        } finally {
          System.setSecurityManager(oldSecurityManager);
          Policy.setPolicy(oldPolicy);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 16 03:24:50 GMT 2021
    - 13.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

            Policy.setPolicy(savedPolicy);
          }
        } else {
          Policy savedPolicy = Policy.getPolicy();
          AdjustablePolicy policy = new AdjustablePolicy(permissions);
          Policy.setPolicy(policy);
    
          try {
            r.run();
          } finally {
            policy.addPermission(new SecurityPermission("setPolicy"));
            Policy.setPolicy(savedPolicy);
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  7. cmd/admin-handlers-users_test.go

    	}
    	v, ok := usersMap[accessKey]
    	if !ok {
    		c.Fatalf("user not listed: %s", accessKey)
    	}
    	c.Assert(v.Status, madmin.AccountEnabled)
    
    	// 3. Associate policy and check that user can access
    	err = s.adm.SetPolicy(ctx, "readwrite", accessKey, false)
    	if err != nil {
    		c.Fatalf("unable to set policy: %v", err)
    	}
    
    	client := s.getUserClient(c, accessKey, secretKey, "")
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Feb 12 16:36:16 GMT 2024
    - 45.7K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users-race_test.go

    		accessKey, secretKey := mustGenerateCredentials(c)
    		err = s.adm.SetUser(ctx, accessKey, secretKey, madmin.AccountEnabled)
    		if err != nil {
    			c.Fatalf("Unable to set user: %v", err)
    		}
    
    		err = s.adm.SetPolicy(ctx, policy, accessKey, false)
    		if err != nil {
    			c.Fatalf("Unable to set policy: %v", err)
    		}
    
    		accessKeys[i] = accessKey
    		secretKeys[i] = secretKey
    	}
    
    	g := errgroup.Group{}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  9. cmd/sts-handlers_test.go

    	}
    
    	// Attempting to set a non-existent policy should fail.
    	userDN := "uid=dillon,ou=people,ou=swengg,dc=min,dc=io"
    	err = s.adm.SetPolicy(ctx, policy+"x", userDN, false)
    	if err == nil {
    		c.Fatalf("should not be able to set non-existent policy")
    	}
    
    	err = s.adm.SetPolicy(ctx, policy, userDN, false)
    	if err != nil {
    		c.Fatalf("Unable to set policy: %v", err)
    	}
    
    	value, err := ldapID.Retrieve()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 19:09:19 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          }
        }
    
        return references.size
      }
    
      /**
       * Adds or replaces the policy for [address].
       * This will trigger a background task to start creating connections as needed.
       */
      fun setPolicy(
        address: Address,
        policy: ConnectionPool.AddressPolicy,
      ) {
        val state = AddressState(address, taskRunner.newQueue(), policy)
        val newConnectionsNeeded: Int
    
        while (true) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top