/libcore/ojluni/src/main/java/sun/security/util/ |
D | DisabledAlgorithmConstraints.java | 96 final public boolean permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 112 final public boolean permits(Set<CryptoPrimitive> primitives, Key key) { in permits() method in DisabledAlgorithmConstraints 121 final public boolean permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 138 public final void permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 147 public final void permits(Set<CryptoPrimitive> primitives, in permits() method in DisabledAlgorithmConstraints 174 if (!permits(primitives, algorithm, parameters)) { in checkConstraints() 180 if (!permits(primitives, key.getAlgorithm(), null)) { in checkConstraints() 185 return algorithmConstraints.permits(key); in checkConstraints() 199 if (!permits(primitives, algorithm, null)) { in checkConstraints() 207 if (!permits(primitives, cert.getPublicKey().getAlgorithm(), null)) { in checkConstraints() [all …]
|
D | SignatureFileVerifier.java | 228 if (!JAR_DISABLED_CHECK.permits(DIGEST_PRIMITIVE_SET, algorithm, null)) { in getDigest()
|
/libcore/ojluni/src/main/java/java/security/ |
D | AlgorithmConstraints.java | 69 public boolean permits(Set<CryptoPrimitive> primitives, in permits() method 87 public boolean permits(Set<CryptoPrimitive> primitives, Key key); in permits() method 105 public boolean permits(Set<CryptoPrimitive> primitives, in permits() method
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | SemaphoreTest.java | 59 PublicSemaphore(int permits) { super(permits); } in PublicSemaphore() argument 60 PublicSemaphore(int permits, boolean fair) { super(permits, fair); } in PublicSemaphore() argument 130 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN() argument 131 s.acquire(permits); in acquireN() 140 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN() argument 141 s.acquireUninterruptibly(permits); in acquireUninterruptiblyN() 150 void acquire(Semaphore s, int permits) { in tryAcquireN() argument 151 assertTrue(s.tryAcquire(permits)); in tryAcquireN() 160 void acquire(Semaphore s, int permits) throws InterruptedException { in acquire() argument 161 assertTrue(s.tryAcquire(permits, 2 * LONG_DELAY_MS, MILLISECONDS)); in acquire() [all …]
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | AlgorithmChecker.java | 261 ((DisabledAlgorithmConstraints)constraints).permits(primitives, in check() 287 if (!constraints.permits( in check() 296 if (!constraints.permits(primitives, currPubKey)) { in check() 306 if (!constraints.permits( in check() 416 if (!certPathDefaultConstraints.permits( in check()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | SignerInfo.java | 382 if (!JAR_DISABLED_CHECK.permits(DIGEST_PRIMITIVE_SET, in verify() 430 if (!JAR_DISABLED_CHECK.permits(SIG_PRIMITIVE_SET, algname, null)) { in verify() 445 if (!JAR_DISABLED_CHECK.permits(SIG_PRIMITIVE_SET, key)) { in verify() 631 if (!JAR_DISABLED_CHECK.permits(DIGEST_PRIMITIVE_SET, digestAlgname, in verifyTimestamp()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 909 private final AtomicLong permits; field in StreamSpliterators.AbstractWrappingSpliterator.UnorderedSliceSpliterator 915 this.permits = new AtomicLong(limit >= 0 ? skip + limit : skip); in UnorderedSliceSpliterator() 922 this.permits = parent.permits; in UnorderedSliceSpliterator() 946 remainingPermits = permits.get(); in acquirePermits() 951 !permits.compareAndSet(remainingPermits, remainingPermits - grabbing)); in acquirePermits() 965 if (permits.get() > 0) in permitStatus() 973 if (permits.get() == 0) in trySplit()
|