/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/spi/ |
H A D | SelectorProviderTest.java | 33 // calling #provider to see if it returns without Exception. 34 assertNotNull(SelectorProvider.provider()); 37 SelectorProvider.provider().inheritedChannel(); 39 assertNotNull(SelectorProvider.provider().openDatagramChannel()); 40 assertNotNull(SelectorProvider.provider().openPipe()); 41 assertNotNull(SelectorProvider.provider().openServerSocketChannel()); 42 assertNotNull(SelectorProvider.provider().openSocketChannel()); 43 assertNotNull(SelectorProvider.provider().openSelector());
|
/libcore/luni/src/test/java/libcore/java/nio/channels/spi/ |
H A D | AsynchronousChannelProviderTest.java | 29 AsynchronousChannelProvider provider = AsynchronousChannelProvider.provider(); 31 assertNotNull(provider); 32 assertSame(AsynchronousChannelProvider.provider(), provider); 34 assertNotNull(provider.openAsynchronousChannelGroup(1, new TestThreadFactory())); 36 assertNotNull(provider.openAsynchronousChannelGroup(Executors.newSingleThreadExecutor(), 39 assertNotNull(provider.openAsynchronousServerSocketChannel( 42 assertNotNull(provider.openAsynchronousSocketChannel( 45 assertNotNull(provider [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | AsynchronousChannelGroup.java | 134 private final AsynchronousChannelProvider provider; field in class:AsynchronousChannelGroup 139 * @param provider 140 * The asynchronous channel provider for this group 142 protected AsynchronousChannelGroup(AsynchronousChannelProvider provider) { argument 143 this.provider = provider; 147 * Returns the provider that created this channel group. 149 * @return The provider that created this channel group 151 public final AsynchronousChannelProvider provider() { method in class:AsynchronousChannelGroup 152 return provider; [all...] |
H A D | Pipe.java | 66 * @param provider 67 * The selector provider 69 protected SourceChannel(SelectorProvider provider) { argument 70 super(provider); 100 * @param provider 101 * The selector provider 103 protected SinkChannel(SelectorProvider provider) { argument 104 super(provider); 155 return SelectorProvider.provider().openPipe();
|
H A D | AsynchronousServerSocketChannel.java | 97 private final AsynchronousChannelProvider provider; field in class:AsynchronousServerSocketChannel 102 * @param provider 103 * The provider that created this channel 105 protected AsynchronousServerSocketChannel(AsynchronousChannelProvider provider) { argument 106 this.provider = provider; 110 * Returns the provider that created this channel. 112 * @return The provider that created this channel 114 public final AsynchronousChannelProvider provider() { method in class:AsynchronousServerSocketChannel 115 return provider; [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | DefaultFileTypeDetector.java | 36 FileSystemProvider provider = FileSystems.getDefault().provider(); 37 return ((UnixFileSystemProvider)provider).getFileTypeDetector();
|
/libcore/ojluni/src/main/java/java/nio/file/ |
H A D | FileSystems.java | 42 * the default {@link FileSystemProvider provider} to be loaded. The default 43 * provider, identified by the URI scheme "file", creates the {@link FileSystem} 45 * machine. If the process of loading or initializing the default provider fails 52 * service-provider loading facility defined by the {@link ServiceLoader} class. 58 * provider-configuration file named {@code java.nio.file.spi.FileSystemProvider} 63 * If a provider is instantiated and its {@link FileSystemProvider#getScheme() 64 * getScheme} returns the same URI scheme of a provider that was previously 66 * schemes are compared without regard to case. During construction a provider 67 * may safely access files associated with the default provider but care needs 73 * to be specified when locating a provider [all...] |
H A D | Paths.java | 48 * The details as to how the Strings are joined is provider specific but 91 * installed} providers to locate the provider that is identified by the 93 * compared without regard to case. If the provider is found then its {@link 97 * <p> In the case of the default provider, identified by the URI scheme 103 * <p> The default provider provides a similar <em>round-trip</em> guarantee 113 * provider specific and therefore unspecified. 122 * format of the URI is provider specific. 125 * cannot be created automatically, or the provider identified by 136 // check for default provider to avoid loading of installed providers 138 return FileSystems.getDefault().provider() [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | AlgorithmParameterGenerator.java | 64 * (via a call to an {@code init} method), each provider must supply (and 65 * document) a default initialization. For example, the Sun provider uses a 117 // The provider 118 private Provider provider; field in class:AlgorithmParameterGenerator 120 // The provider implementation (delegate) 130 * @param provider the provider 134 (AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, 137 this.provider = provider; 133 AlgorithmParameterGenerator(AlgorithmParameterGeneratorSpi paramGenSpi, Provider provider, String algorithm) argument 229 getInstance(String algorithm, String provider) argument 273 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | AlgorithmParameters.java | 166 // The provider 167 private Provider provider; field in class:AlgorithmParameters 169 // The provider implementation (delegate) 182 * @param provider the provider 186 Provider provider, String algorithm) 189 this.provider = provider; 249 * AlgorithmParametersSpi implementation from the specified provider 250 * is returned. The specified provider mus 185 AlgorithmParameters(AlgorithmParametersSpi paramSpi, Provider provider, String algorithm) argument 282 getInstance(String algorithm, String provider) argument 327 getInstance(String algorithm, Provider provider) argument [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
H A D | CertPathBuilder.java | 43 * This class uses a provider-based architecture. 47 * the name of the provider desired. 100 * Unless otherwise documented by a specific provider, threads that need to 124 private final Provider provider; field in class:CertPathBuilder 129 * and encapsulates the given provider implementation (SPI object) in it. 131 * @param builderSpi the provider implementation 132 * @param provider the provider 135 protected CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, argument 139 this.provider 214 getInstance(String algorithm, String provider) argument 251 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | CertPathValidator.java | 44 * This class uses a provider-based architecture. 48 * optionally the name of the provider desired. 100 * Unless otherwise documented by a specific provider, threads that need to 123 private final Provider provider; field in class:CertPathValidator 128 * and encapsulates the given provider implementation (SPI object) in it. 130 * @param validatorSpi the provider implementation 131 * @param provider the provider 135 Provider provider, String algorithm) 138 this.provider 134 CertPathValidator(CertPathValidatorSpi validatorSpi, Provider provider, String algorithm) argument 213 getInstance(String algorithm, String provider) argument 251 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | CertStore.java | 44 * This class uses a provider-based architecture. 48 * and optionally the name of the provider desired. 111 private Provider provider; field in class:CertStore 117 * encapsulates the given provider implementation (SPI object) in it. 119 * @param storeSpi the provider implementation 120 * @param provider the provider 124 protected CertStore(CertStoreSpi storeSpi, Provider provider, argument 127 this.provider = provider; 302 getInstance(String type, CertStoreParameters params, String provider) argument 357 getInstance(String type, CertStoreParameters params, Provider provider) argument [all...] |
H A D | CertificateFactory.java | 154 // The provider 155 private Provider provider; field in class:CertificateFactory 157 // The provider implementation 162 * the given provider implementation (SPI object) in it. 164 * @param certFacSpi the provider implementation. 165 * @param provider the provider. 169 Provider provider, String type) 172 this.provider = provider; 168 CertificateFactory(CertificateFactorySpi certFacSpi, Provider provider, String type) argument 249 getInstance(String type, String provider) argument 291 getInstance(String type, Provider provider) argument [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | KeyManagerFactory.java | 37 * material is based on a KeyStore and/or provider specific sources. 59 // The provider 60 private Provider provider; field in class:KeyManagerFactory 62 // The provider implementation (delegate) 99 * @param provider the provider 103 Provider provider, String algorithm) { 105 this.provider = provider; 156 instance.provider, algorith 102 KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, String algorithm) argument 193 getInstance(String algorithm, String provider) argument 231 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | TrustManagerFactory.java | 37 * material is based on a KeyStore and/or provider specific sources. 59 // The provider 60 private Provider provider; field in class:TrustManagerFactory 62 // The provider implementation (delegate) 99 * @param provider the provider 103 Provider provider, String algorithm) { 105 this.provider = provider; 158 instance.provider, algorith 102 TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, String algorithm) argument 195 getInstance(String algorithm, String provider) argument 233 getInstance(String algorithm, Provider provider) argument [all...] |
H A D | SSLContext.java | 88 private final Provider provider; field in class:SSLContext 98 * @param provider the provider 101 protected SSLContext(SSLContextSpi contextSpi, Provider provider, argument 104 this.provider = provider; 191 return new SSLContext((SSLContextSpi)instance.impl, instance.provider, 200 * SSLContextSpi implementation from the specified provider 201 * is returned. The specified provider must be registered 202 * in the security provider lis 230 getInstance(String protocol, String provider) argument 267 getInstance(String protocol, Provider provider) argument [all...] |
/libcore/ojluni/src/main/java/sun/net/ftp/ |
H A D | FtpClientProvider.java | 33 * Service provider class for FtpClient. 36 * See {@link #provider() } for how providers are found and loaded. 43 * Creates a FtpClient from this provider. 49 private static FtpClientProvider provider = null; field in class:FtpClientProvider 71 provider = (FtpClientProvider) c.newInstance(); 89 // provider = (FtpClientProvider) i.next(); 93 // // Ignore, try next provider, if any 106 * <p> The first invocation of this method locates the default provider 113 * taken to be the fully-qualified name of a concrete provider class. 117 * <li><p> If a provider clas 137 public static FtpClientProvider provider() { method in class:FtpClientProvider [all...] |
/libcore/ojluni/src/main/java/java/time/zone/ |
H A D | ZoneRulesProvider.java | 90 * directories. Installed providers are loaded using the service-provider loading 92 * identifies itself with a provider configuration file named 95 * fully qualified concrete zonerules-provider class name. 99 * The Java virtual machine has a default provider that provides zone rules 103 * class to be loaded as the default provider, using the system class loader. 104 * If this system property is not defined, a system-default provider will be 105 * loaded to serve as the default provider. 111 * Each provider will provide the latest rules for each zone ID, but they 115 * This interface is a service provider that can be called by multiple threads. 125 * Providers may choose to handle dynamic updates, however the default provider doe 249 registerProvider(ZoneRulesProvider provider) argument 261 registerProvider0(ZoneRulesProvider provider) argument [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | SelectorProvider.java | 40 * Service-provider class for selectors and selectable channels. 42 * <p> A selector provider is a concrete subclass of this class that has a 45 * system-wide default provider instance, which is returned by the {@link 46 * #provider() provider} method. The first invocation of that method will locate 47 * the default provider as specified below. 49 * <p> The system-wide default provider is used by the static <tt>open</tt> 56 * method. A program may make use of a provider other than the default provider 57 * by instantiating that provider an 72 private static SelectorProvider provider = null; field in class:SelectorProvider 164 public static SelectorProvider provider() { method in class:SelectorProvider [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | ProviderTest.java | 81 for (Provider provider : providers) { 82 String providerName = provider.getName(); 83 // ignore BouncyCastle provider if it is installed on the RI 87 Set<Provider.Service> services = provider.getServices(); 139 Cipher.getInstance(remainingAlgo, provider); 156 provider.getClass().getClassLoader())); 199 * Makes sure all provider properties either point to a class 211 for (Provider provider : providers) { 213 assertEquals(provider.getName(), 214 provider 1015 private final Provider provider; field in class:ProviderTest.ProviderAndOperationParameter [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
H A D | ECDHKeyAgreementTest.java | 88 throw new RuntimeException("Failed to decode KAT key pairs using default provider", e); 136 void testGetAlgorithm(Provider provider) throws Exception { argument 137 assertEquals("ECDH", getKeyAgreement(provider).getAlgorithm()); 144 void testGetProvider(Provider provider) throws Exception { argument 145 assertSame(provider, getKeyAgreement(provider).getProvider()); 152 void testInit_withNullPrivateKey(Provider provider) throws Exception { argument 153 KeyAgreement keyAgreement = getKeyAgreement(provider); 164 void testInit_withUnsupportedPrivateKeyType(Provider provider) throws Exception { argument 165 KeyAgreement keyAgreement = getKeyAgreement(provider); 176 testInit_withUnsupportedAlgorithmParameterSpec(Provider provider) argument 187 testDoPhase_whenNotInitialized(Provider provider) argument 198 testDoPhaseReturnsNull(Provider provider) argument 208 testDoPhase_withPhaseWhichIsNotLast(Provider provider) argument 221 testDoPhase_withNullKey(Provider provider) argument 234 testDoPhase_withInvalidKeyType(Provider provider) argument 247 testGenerateSecret_withNullOutputBuffer(Provider provider) argument 261 testGenerateSecret_withBufferOfTheRightSize(Provider provider) argument 276 testGenerateSecret_withLargerThatNeededBuffer(Provider provider) argument 299 testGenerateSecret_withSmallerThanNeededBuffer(Provider provider) argument 315 testGenerateSecret_withoutBuffer(Provider provider) argument 328 testGenerateSecret_withAlgorithm(Provider provider) argument 407 getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) argument 413 getPublicKey(byte[] x509EncodedKey, Provider provider) argument 431 getKeyAgreement(Provider provider) argument [all...] |
/libcore/benchmarks/src/benchmarks/regression/ |
H A D | KeyPairGeneratorBenchmark.java | 45 final String provider; 47 provider = "BC"; 49 provider = "AndroidOpenSSL"; 52 this.generator = KeyPairGenerator.getInstance(generatorAlgorithm, provider);
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
H A D | CryptoProvider.java | 18 package org.apache.harmony.security.provider.crypto; 39 "org.apache.harmony.security.provider.crypto.SHA1PRNG_SecureRandomImpl");
|
/libcore/luni/src/main/native/ |
H A D | IcuUtilities.h | 24 extern jobjectArray fromStringEnumeration(JNIEnv* env, UErrorCode& status, const char* provider, icu::StringEnumeration*);
|