259 } |
259 } |
260 return s; |
260 return s; |
261 } |
261 } |
262 } |
262 } |
263 |
263 |
264 private static volatile CipherTestUtils instnace = null; |
264 private static volatile CipherTestUtils instance = null; |
265 |
265 |
266 public static CipherTestUtils getInstance() throws IOException, |
266 public static CipherTestUtils getInstance() throws IOException, |
267 FileNotFoundException, KeyStoreException, |
267 FileNotFoundException, KeyStoreException, |
268 NoSuchAlgorithmException, CertificateException, |
268 NoSuchAlgorithmException, CertificateException, |
269 UnrecoverableKeyException, InvalidKeySpecException { |
269 UnrecoverableKeyException, InvalidKeySpecException { |
270 if (instnace == null) { |
270 if (instance == null) { |
271 synchronized (CipherTestUtils.class) { |
271 synchronized (CipherTestUtils.class) { |
272 if (instnace == null) { |
272 if (instance == null) { |
273 instnace = new CipherTestUtils(); |
273 instance = new CipherTestUtils(); |
274 } |
274 } |
275 } |
275 } |
276 } |
276 } |
277 return instnace; |
277 return instance; |
278 } |
278 } |
279 |
279 |
280 public static void setTestedArguments(String testedProtocol, |
280 public static void setTestedArguments(String testedProtocol, |
281 String testedCipherSuite) { |
281 String testedCipherSuite) { |
282 |
282 |