Home
last modified time | relevance | path

Searched refs:Provider (Results 1 – 25 of 112) sorted by relevance

12345

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DProviderServiceTest.java26 import java.security.Provider;
27 import java.security.Provider.Service;
44 Provider p = new MyProvider(); in testService()
46 new Provider.Service(null, "type", "algorithm", "className", null, in testService()
52 new Provider.Service(p, null, "algorithm", "className", null, null); in testService()
57 new Provider.Service(p, "type", null, "className", null, null); in testService()
62 new Provider.Service(p, "type", "algorithm", null, null, null); in testService()
67 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testService()
88 Provider p = new MyProvider(); in testGetAttribute()
89 Provider.Service s = new Provider.Service(p, "type", "algorithm", in testGetAttribute()
[all …]
DSecurityTest.java26 import java.security.Provider;
49 Provider p = new MyProvider(); in test_insertProviderAtLjava_security_ProviderLI()
52 Provider initialSecondProviderName = Security.getProviders()[1]; in test_insertProviderAtLjava_security_ProviderLI()
93 Provider p = new MyProvider(); in test_addProviderLjava_security_Provider()
118 Provider provider = new MyProvider(); in testGetAlgorithmPropertyLjava_lang_String_java_lang_String()
157 Provider[] providers; in testRemoveProvider()
158 Provider[] providers1; in testRemoveProvider()
192 Provider[] providers = Security.getProviders(); in test_getProviderLjava_lang_String()
195 for (Provider p : providers) { in test_getProviderLjava_lang_String()
201 Provider p = new MyProvider(); in test_getProviderLjava_lang_String()
[all …]
DProviderTest.java32 import java.security.Provider;
35 import java.security.Provider.Service;
57 Provider[] storedProviders;
59 Provider p;
78 for (Provider p: Security.getProviders()) { in tearDown()
82 for (Provider p: storedProviders) { in tearDown()
120 Provider p = new MyProvider("Provider name", 123.456, "Provider info"); in testProviderStringdoubleString()
269 Provider.Service s = (Provider.Service)it.next(); in testPutObjectObject()
302 Provider.Service s = p.getService("MessageDigest", "SHA-1"); in testService1()
330 class MyProvider extends Provider {
[all …]
DProvider2Test.java22 import java.security.Provider;
27 class TestProvider extends Provider {
137 Provider.Service service = new Provider.Service(mockProvider, in test_getAlias()
153 public static class MockProvider extends Provider {
162 public void putService(Provider.Service service) { in putService()
166 public void removeService(Provider.Service service) { in removeService()
DMessageDigest2Test.java26 import java.security.Provider;
39 private Map<Provider, List<String>> digestAlgs = new HashMap<Provider, List<String>>();
80 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_clone()
242 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_digest$B()
255 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_digest$BII()
287 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getAlgorithm()
299 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getDigestLength()
311 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getInstanceLjava_lang_String()
330 for (Entry<Provider, List<String>> e : digestAlgs.entrySet()) { in test_getInstanceLjava_lang_StringLjava_lang_String()
347 for (Provider provider : digestAlgs.keySet()) { in test_getInstanceLjava_lang_StringLjava_lang_String()
[all …]
DSecurity2Test.java21 import java.security.Provider;
40 Provider[] allProviders = Security.getProviders(); in test_getProvidersLjava_lang_String()
43 for (Provider provider : allProviders) { in test_getProvidersLjava_lang_String()
56 for (Provider provider : allProviders) { in test_getProvidersLjava_lang_String()
77 Provider[] provTest = Security.getProviders(filterString); in test_getProvidersLjava_lang_String()
116 Provider[] allProviders = Security.getProviders(); in getProvidersCount()
119 for (Provider provider : allProviders) { in getProvidersCount()
185 Provider[] provTest = Security.getProviders(filter); in test_getProvidersLjava_util_Map()
266 Provider test = new Support_TestProvider(); in test_removeProviderLjava_lang_String()
267 Provider entrust = new Support_ProviderTrust(); in test_removeProviderLjava_lang_String()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/fortress/
DServices.java20 import java.security.Provider;
39 private static final HashMap<String, ArrayList<Provider.Service>> services
40 = new HashMap<String, ArrayList<Provider.Service>>(600);
46 private static Provider.Service cachedSecureRandomService;
63 private static final ArrayList<Provider> providers = new ArrayList<Provider>(20);
68 private static final HashMap<String, Provider> providersNames
69 = new HashMap<String, Provider>(20);
78 Provider p = (Provider) providerClass.newInstance();
93 public static synchronized ArrayList<Provider> getProviders() { in getProviders()
100 public static synchronized Provider getProvider(String name) { in getProvider()
[all …]
DEngine.java26 import java.security.Provider;
98 private final ArrayList<Provider.Service> services;
102 ArrayList<Provider.Service> services) { in ServiceCacheEntry()
111 public final Provider provider;
112 private SpiAndProvider(Object spi, Provider provider) { in SpiAndProvider()
137 ArrayList<Provider.Service> services = getServices(algorithm); in getInstance()
149 public SpiAndProvider getInstance(Provider.Service service, String param) in getInstance()
157 public ArrayList<Provider.Service> getServices(String algorithm) { in getServices()
167 ArrayList<Provider.Service> services = Services.getServices(name); in getServices()
176 public Object getInstance(String algorithm, Provider provider, Object param) in getInstance()
[all …]
DSecurityAccess.java25 import java.security.Provider;
45 public List<String> getAliases(Provider.Service s); in getAliases()
53 public Provider.Service getService(Provider p, String type); in getService()
/libcore/luni/src/test/java/libcore/javax/crypto/
DECDHKeyAgreementTest.java32 import java.security.Provider;
96 for (Provider keyFactoryProvider1 : getKeyFactoryProviders()) { in testKnownAnswer()
99 for (Provider keyFactoryProvider2 : getKeyFactoryProviders()) { in testKnownAnswer()
104 for (Provider keyAgreementProvider : getKeyAgreementProviders()) { in testKnownAnswer()
123 Provider keyAgreementProvider) throws Exception { in testKnownAnswer()
134 void testGetAlgorithm(Provider provider) throws Exception { in testGetAlgorithm()
142 void testGetProvider(Provider provider) throws Exception { in testGetProvider()
150 void testInit_withNullPrivateKey(Provider provider) throws Exception { in testInit_withNullPrivateKey()
162 void testInit_withUnsupportedPrivateKeyType(Provider provider) throws Exception { in testInit_withUnsupportedPrivateKeyType()
174 void testInit_withUnsupportedAlgorithmParameterSpec(Provider provider) throws Exception { in testInit_withUnsupportedAlgorithmParameterSpec()
[all …]
/libcore/luni/src/main/java/java/security/
DSecurity.java97 Provider[] providers = getProviders(); in getAlgorithmProperty()
98 for (Provider provider : providers) { in getAlgorithmProperty()
122 public static synchronized int insertProviderAt(Provider provider, int position) { in insertProviderAt()
144 public static int addProvider(Provider provider) { in addProvider()
167 Provider p; in removeProvider()
186 public static synchronized Provider[] getProviders() { in getProviders()
187 ArrayList<Provider> providers = Services.getProviders(); in getProviders()
188 return providers.toArray(new Provider[providers.size()]); in getProviders()
200 public static synchronized Provider getProvider(String name) { in getProvider()
227 public static Provider[] getProviders(String filter) { in getProviders()
[all …]
DSecureRandom.java75 private final Provider provider;
89 Provider.Service service = Services.getSecureRandomService(); in SecureRandom()
125 Provider provider) { in SecureRandom()
131 Provider provider, in SecureRandom()
184 Provider p = Security.getProvider(provider); in getInstance()
208 public static SecureRandom getInstance(String algorithm, Provider provider) in getInstance()
225 public final Provider getProvider() { in getProvider()
DKeyPairGenerator.java43 private Provider provider;
87 Provider provider = sap.provider; in getInstance()
118 Provider impProvider = Security.getProvider(provider); in getInstance()
142 Provider provider) throws NoSuchAlgorithmException { in getInstance()
164 public final Provider getProvider() { in getProvider()
259 Provider provider, String algorithm) { in KeyPairGeneratorImpl()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java22 import java.security.Provider;
70 Provider[] providers = Security.getProviders(); in test_Provider_getServices()
71 for (Provider provider : providers) { in test_Provider_getServices()
77 Set<Provider.Service> services = provider.getServices(); in test_Provider_getServices()
81 for (Provider.Service service : services) { in test_Provider_getServices()
168 Provider[] providers = Security.getProviders(); in test_Provider_Properties()
169 for (Provider provider : providers) { in test_Provider_Properties()
261 Provider[] providers = Security.getProviders(); in test_Provider_getServices_supportsParameter()
262 for (Provider provider : providers) { in test_Provider_getServices_supportsParameter()
263 Set<Provider.Service> services = provider.getServices(); in test_Provider_getServices_supportsParameter()
[all …]
/libcore/luni/src/main/java/javax/crypto/
DKeyAgreement.java25 import java.security.Provider;
50 private Provider provider;
53 private final Provider specifiedProvider;
76 protected KeyAgreement(KeyAgreementSpi keyAgreeSpi, Provider provider, in KeyAgreement()
97 public final Provider getProvider() { in getProvider()
141 Provider impProvider = Security.getProvider(provider); in getInstance()
167 public static final KeyAgreement getInstance(String algorithm, Provider provider) in getInstance()
175 private static KeyAgreement getKeyAgreement(String algorithm, Provider provider) in getKeyAgreement()
192 … private static Engine.SpiAndProvider tryAlgorithm(Key key, Provider provider, String algorithm) { in tryAlgorithm()
194 Provider.Service service = provider.getService(SERVICE, algorithm); in tryAlgorithm()
[all …]
DMac.java26 import java.security.Provider;
47 private Provider provider;
50 private final Provider specifiedProvider;
76 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { in Mac()
97 public final Provider getProvider() { in getProvider()
145 Provider impProvider = Security.getProvider(provider); in getInstance()
171 public static final Mac getInstance(String algorithm, Provider provider) in getInstance()
179 private static Mac getMac(String algorithm, Provider provider) in getMac()
196 … private static Engine.SpiAndProvider tryAlgorithm(Key key, Provider provider, String algorithm) { in tryAlgorithm()
198 Provider.Service service = provider.getService(SERVICE, algorithm); in tryAlgorithm()
[all …]
DSecretKeyFactory.java23 import java.security.Provider;
48 private final Provider provider;
67 Provider provider, String algorithm) { in SecretKeyFactory()
87 public final Provider getProvider() { in getProvider()
137 Provider impProvider = Security.getProvider(provider); in getInstance()
164 Provider provider) throws NoSuchAlgorithmException { in getInstance()
DKeyGenerator.java23 import java.security.Provider;
43 private final Provider provider;
61 protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider, in KeyGenerator()
82 public final Provider getProvider() { in getProvider()
131 Provider impProvider = Security.getProvider(provider); in getInstance()
157 Provider provider) throws NoSuchAlgorithmException { in getInstance()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DSpiEngUtils.java26 import java.security.Provider;
47 public static Provider isSupport(String algorithm, String service) { in isSupport()
49 Provider[] provs = Security.getProviders(service.concat(".") in isSupport()
60 public class MyProvider extends Provider {
/libcore/luni/src/main/java/java/security/cert/
DCertPathValidator.java23 import java.security.Provider;
47 private final Provider provider;
66 Provider provider, String algorithm) { in CertPathValidator()
86 public final Provider getProvider() { in getProvider()
134 Provider impProvider = Security.getProvider(provider); in getInstance()
159 Provider provider) throws NoSuchAlgorithmException { in getInstance()
DCertPathBuilder.java23 import java.security.Provider;
46 private final Provider provider;
64 protected CertPathBuilder(CertPathBuilderSpi builderSpi, Provider provider, in CertPathBuilder()
85 public final Provider getProvider() { in getProvider()
132 Provider impProvider = Security.getProvider(provider); in getInstance()
156 Provider provider) throws NoSuchAlgorithmException { in getInstance()
/libcore/luni/src/main/java/javax/net/ssl/
DTrustManagerFactory.java25 import java.security.Provider;
104 Provider impProvider = Security.getProvider(provider); in getInstance()
127 public static final TrustManagerFactory getInstance(String algorithm, Provider provider) in getInstance()
140 private final Provider provider;
158 protected TrustManagerFactory(TrustManagerFactorySpi factorySpi, Provider provider, in TrustManagerFactory()
181 public final Provider getProvider() { in getProvider()
DKeyManagerFactory.java25 import java.security.Provider;
105 Provider impProvider = Security.getProvider(provider); in getInstance()
128 public static final KeyManagerFactory getInstance(String algorithm, Provider provider) in getInstance()
141 private final Provider provider;
159 protected KeyManagerFactory(KeyManagerFactorySpi factorySpi, Provider provider, in KeyManagerFactory()
180 public final Provider getProvider() { in getProvider()
DSSLContext.java23 import java.security.Provider;
241 Provider impProvider = Security.getProvider(provider); in getInstance()
264 public static SSLContext getInstance(String protocol, Provider provider) in getInstance()
276 private final Provider provider;
292 protected SSLContext(SSLContextSpi contextSpi, Provider provider, String protocol) { in SSLContext()
312 public final Provider getProvider() { in getProvider()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DExemptionMechanismTest.java27 import java.security.Provider;
62 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in testExemptionMechanism()
122 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in testIsCryptoAllowed()
154 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in testGenExemptionBlob()
176 …protected Mock_ExemptionMechanism(ExemptionMechanismSpi exmechSpi, Provider provider, String mecha… in Mock_ExemptionMechanism()
235 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_genExemptionBlob()
273 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_genExemptionBlob$B()
313 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_genExemptionBlob$BI()
359 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_getInstanceLjava_lang_String()
378 Provider mProv = (new SpiEngUtils()).new MyProvider("MyExMechProvider", in test_getInstanceLjava_lang_StringLjava_security_Provider()
[all …]

12345