use of libcore.java.security.TestKeyStore in project robovm by robovm.
the class KeyStoreBuilderParametersTest method test_init_Builder.
public void test_init_Builder() {
TestKeyStore testKeyStore = TestKeyStore.getClient();
Builder builder = Builder.newInstance(testKeyStore.keyStore, new PasswordProtection(testKeyStore.storePassword));
KeyStoreBuilderParameters ksbp = new KeyStoreBuilderParameters(builder);
assertNotNull(ksbp);
assertNotNull(ksbp.getParameters());
assertEquals(1, ksbp.getParameters().size());
assertSame(builder, ksbp.getParameters().get(0));
}
use of libcore.java.security.TestKeyStore in project robovm by robovm.
the class SSLEngineTest method test_SSLEngine_getSupportedCipherSuites_connect.
public void test_SSLEngine_getSupportedCipherSuites_connect() throws Exception {
// note the rare usage of non-RSA keys
TestKeyStore testKeyStore = new TestKeyStore.Builder().keyAlgorithms("RSA", "DSA", "EC", "EC_RSA").aliasPrefix("rsa-dsa-ec").ca(true).build();
test_SSLEngine_getSupportedCipherSuites_connect(testKeyStore, false);
if (StandardNames.IS_RI) {
test_SSLEngine_getSupportedCipherSuites_connect(testKeyStore, true);
}
}
Aggregations