Lines Matching refs:getInstance
28 * @summary make sure getInstance() works correctly, including failover
66 System.out.println("Testing MessageDigest.getInstance()...");
68 m = MessageDigest.getInstance("foo");
69 m = MessageDigest.getInstance("foo", "foo");
70 m = MessageDigest.getInstance("foo", foo);
72 System.out.println("Testing Signature.getInstance() for SPI...");
75 sig = Signature.getInstance("foo");
77 sig = Signature.getInstance("foo");
80 sig = Signature.getInstance("foo", "foo");
83 sig = Signature.getInstance("foo", foo);
87 System.out.println("Testing Signature.getInstance() for Signature...");
88 sig = Signature.getInstance("fuu");
90 sig = Signature.getInstance("fuu");
93 sig = Signature.getInstance("fuu", "foo");
96 sig = Signature.getInstance("fuu", foo);
100 System.out.println("Testing CertStore.getInstance()...");
103 cs = CertStore.getInstance("foo", params);
104 cs = CertStore.getInstance("foo", params, "foo");
105 cs = CertStore.getInstance("foo", params, foo);
108 m = MessageDigest.getInstance("bar");
110 sig = Signature.getInstance("bar");
112 cs = CertStore.getInstance("bar", params);
116 sig = Signature.getInstance("baz");