Home
last modified time | relevance | path

Searched refs:spi (Results 1 – 25 of 133) sorted by relevance

123456

/libcore/ojluni/src/main/java/javax/crypto/
DMac.java175 private MacSpi spi; field in Mac
210 this.spi = macSpi; in Mac()
371 if (spi != null || lock == null) { in chooseFirstProvider()
375 if (spi != null) { in chooseFirstProvider()
404 spi = (MacSpi)obj; in chooseFirstProvider()
431 if (spi != null && (key == null || lock == null)) { in chooseProvider()
432 spi.engineInit(key, params); in chooseProvider()
446 MacSpi spi = (MacSpi)s.newInstance(null); in chooseProvider() local
447 spi.engineInit(key, params); in chooseProvider()
449 this.spi = spi; in chooseProvider()
[all …]
DKeyAgreement.java110 private KeyAgreementSpi spi; field in KeyAgreement
143 this.spi = keyAgreeSpi; in KeyAgreement()
318 if (spi != null) { in chooseFirstProvider()
322 if (spi != null) { in chooseFirstProvider()
351 spi = (KeyAgreementSpi)obj; in chooseFirstProvider()
376 private void implInit(KeyAgreementSpi spi, int type, Key key, in implInit() argument
380 spi.engineInit(key, random); in implInit()
382 spi.engineInit(key, params, random); in implInit()
392 if (spi != null && key == null) { in chooseProvider()
393 implInit(spi, initType, key, params, random); in chooseProvider()
[all …]
DKeyGenerator.java190 private volatile KeyGeneratorSpi spi; field in KeyGenerator
213 this.spi = keyGenSpi; in KeyGenerator()
404 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
405 return spi; in nextSpi()
421 KeyGeneratorSpi spi = (KeyGeneratorSpi)inst; in nextSpi() local
424 spi.engineInit(initKeySize, initRandom); in nextSpi()
426 spi.engineInit(initParams, initRandom); in nextSpi()
428 spi.engineInit(initRandom); in nextSpi()
435 this.spi = spi; in nextSpi()
436 return spi; in nextSpi()
[all …]
DSecretKeyFactory.java276 private volatile SecretKeyFactorySpi spi; field in SecretKeyFactory
294 this.spi = keyFacSpi; in SecretKeyFactory()
475 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
476 return spi; in nextSpi()
491 SecretKeyFactorySpi spi = (SecretKeyFactorySpi)obj; in nextSpi() local
493 this.spi = spi; in nextSpi()
494 return spi; in nextSpi()
518 return spi.engineGenerateSecret(keySpec); in generateSecret()
521 SecretKeyFactorySpi mySpi = spi; in generateSecret()
562 return spi.engineGetKeySpec(key, keySpec); in getKeySpec()
[all …]
DCipher.java338 private CipherSpi spi; field in Cipher
410 this.spi = cipherSpi; in Cipher()
423 this.spi = cipherSpi; in Cipher()
773 spiAndProviderUpdater.updateAndGetSpiAndProvider(null, spi, provider); in updateProviderIfNeeded()
792 spiAndProviderUpdater.updateAndGetSpiAndProvider(initParams, spi, provider); in chooseProvider()
842 return spi.engineGetBlockSize(); in getBlockSize()
875 return spi.engineGetOutputSize(inputLen); in getOutputSize()
891 return spi.engineGetIV(); in getIV()
907 return spi.engineGetParameters(); in getParameters()
1701 return spi.engineUpdate(input, 0, input.length); in update()
[all …]
/libcore/ojluni/src/main/java/java/security/
DKeyPairGenerator.java197 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)instance.impl; in getInstance() local
198 kpg = new Delegate(spi, algorithm); in getInstance()
594 private volatile KeyPairGeneratorSpi spi; field in KeyPairGenerator.Delegate
610 Delegate(KeyPairGeneratorSpi spi, String algorithm) { in Delegate() argument
612 this.spi = spi; in Delegate()
618 spi = (KeyPairGeneratorSpi)instance.impl; in Delegate()
643 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
644 return spi; in nextSpi()
660 KeyPairGeneratorSpi spi = (KeyPairGeneratorSpi)inst; in nextSpi() local
663 spi.initialize(initKeySize, initRandom); in nextSpi()
[all …]
DKeyFactory.java133 private volatile KeyFactorySpi spi; field in KeyFactory
152 this.spi = keyFacSpi; in KeyFactory()
327 if ((oldSpi != null) && (oldSpi != spi)) { in nextSpi()
328 return spi; in nextSpi()
340 KeyFactorySpi spi = (KeyFactorySpi)obj; in nextSpi() local
342 this.spi = spi; in nextSpi()
343 return spi; in nextSpi()
367 return spi.engineGeneratePublic(keySpec); in generatePublic()
370 KeyFactorySpi mySpi = spi; in generatePublic()
405 return spi.engineGeneratePrivate(keySpec); in generatePrivate()
[all …]
DSignature.java398 SignatureSpi spi = (SignatureSpi)instance.impl; in getInstance() local
399 sig = new Delegate(spi, algorithm); in getInstance()
1313 SignatureSpi spi = newInstance(s); in chooseProvider() local
1314 init(spi, type, key, random); in chooseProvider()
1316 sigSpi = spi; in chooseProvider()
1354 private void init(SignatureSpi spi, int type, Key key, in init() argument
1358 spi.engineInitVerify((PublicKey)key); in init()
1361 spi.engineInitSign((PrivateKey)key); in init()
1364 spi.engineInitSign((PrivateKey)key, random); in init()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DMockAbstractSelector.java17 package org.apache.harmony.tests.java.nio.channels.spi;
22 import java.nio.channels.spi.AbstractSelectableChannel;
23 import java.nio.channels.spi.AbstractSelectionKey;
24 import java.nio.channels.spi.AbstractSelector;
25 import java.nio.channels.spi.SelectorProvider;
DAbstractSelectionKeyTest.java17 package org.apache.harmony.tests.java.nio.channels.spi;
22 import java.nio.channels.spi.AbstractSelectionKey;
DAbstractInterruptibleChannelTest.java17 package org.apache.harmony.tests.java.nio.channels.spi;
21 import java.nio.channels.spi.AbstractInterruptibleChannel;
/libcore/luni/src/test/java/libcore/java/security/
DPolicySpiTest.java58 private static final TestPolicySpi spi = new TestPolicySpi(); field in PolicySpiTest
62 spi.engineRefresh(); in testEngineRefresh_doesntThrow()
68 spi.engineGetPermissions((CodeSource) null)); in testEngineGetPermissions()
70 spi.engineGetPermissions((ProtectionDomain) null)); in testEngineGetPermissions()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DTEST_MAPPING7 "include-filter": "libcore.java.nio.channels.spi"
10 "include-filter": "org.apache.harmony.nio.tests.java.nio.channels.spi"
13 "include-filter": "org.apache.harmony.tests.java.nio.channels.spi"
/libcore/luni/src/test/java/tests/security/cert/
DCertPathValidatorSpiTest.java38 CertPathValidatorSpi spi = new PathValidatorSpiNoRevocation(); in engineGetRevocationChecker_Unsupported() local
40 spi.engineGetRevocationChecker(); in engineGetRevocationChecker_Unsupported()
49 CertPathValidatorSpi spi = new PathValidatorSpiWithRevocation(); in engineGetRevocationChecker_Supported() local
50 assertEquals(PathChecker.class, spi.engineGetRevocationChecker().getClass()); in engineGetRevocationChecker_Supported()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLContext1Test.java103 SSLContextSpi spi = new MySSLContextSpi(); in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String() local
104 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_ConstructorLjavax_net_ssl_SSLContextSpiLjava_security_ProviderLjava_lang_String()
145 SSLContextSpi spi = new MySSLContextSpi(); in test_createSSLEngine() local
146 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngine()
160 SSLContextSpi spi = new MySSLContextSpi(); in test_createSSLEngineLjava_lang_StringI() local
161 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_createSSLEngineLjava_lang_StringI()
399 SSLContextSpi spi = new MySSLContextSpi(); in test_getProtocol() local
400 SSLContext sslContext = new MySslContext(spi, defaultProvider, in test_getProtocol()
404 sslContext = new MySslContext(spi, defaultProvider, in test_getProtocol()
426 SSLContextSpi spi = new MySSLContextSpi(); in test_getProvider() local
[all …]
DSSLContextSpiTest.java224 SpiWithSocketFactory spi = new SpiWithSocketFactory(); in getSslParameters() local
225 spi.engineInit(getKeyManagers(), getTrustManagers(), getSecureRandom()); in getSslParameters()
227 SSLParameters defaultParams = spi.engineGetDefaultSSLParameters(); in getSslParameters()
236 SSLParameters supportedParams = spi.engineGetSupportedSSLParameters(); in getSslParameters()
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/
Dunsupported_new_apis.txt47 java/text/spi/BreakIteratorProvider
48 java/text/spi/CollatorProvider
49 java/text/spi/DateFormatProvider
50 java/text/spi/DateFormatSymbolsProvider
51 java/text/spi/DecimalFormatSymbolsProvider
52 java/text/spi/NumberFormatProvider
53 java/util/spi/CalendarDataProvider
54 java/util/spi/CalendarNameProvider
55 java/util/spi/CurrencyNameProvider
56 java/util/spi/LocaleNameProvider
[all …]
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DSelectorImpl.java29 import java.nio.channels.spi.*;
33 public abstract class SelectorImpl extends java.nio.channels.spi.AbstractSelector {
35 protected SelectorImpl(java.nio.channels.spi.SelectorProvider sp) { in SelectorImpl()
77 java.nio.channels.spi.AbstractSelectableChannel ch, in register()
/libcore/ojluni/src/main/java/sun/nio/fs/
DDefaultFileTypeDetector.java29 import java.nio.file.spi.FileTypeDetector;
30 import java.nio.file.spi.FileSystemProvider;
/libcore/luni/src/test/java/libcore/java/nio/file/spi/
DFileTypeDetectorTest.java1 package libcore.java.nio.file.spi;
6 import java.nio.file.spi.FileTypeDetector;
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/
DSelectorProviderTest.java17 package org.apache.harmony.nio.tests.java.nio.channels.spi;
19 import java.nio.channels.spi.SelectorProvider;
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectableChannel.java29 import java.nio.channels.spi.AbstractInterruptibleChannel;
30 import java.nio.channels.spi.SelectorProvider;
DServerSocketChannel.java32 import java.nio.channels.spi.AbstractSelectableChannel;
33 import java.nio.channels.spi.SelectorProvider;
/libcore/luni/src/module/java/
Dmodule-info.java32 exports java.nio.channels.spi;
34 exports java.nio.charset.spi;
37 exports java.nio.file.spi;
80 exports sun.net.spi;
81 exports sun.net.spi.nameservice;
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/
DAsynchronousChannelProviderTest.java17 package libcore.java.nio.channels.spi;
22 import java.nio.channels.spi.AsynchronousChannelProvider;

123456