equal
deleted
inserted
replaced
51 s.newInstance(null); |
51 s.newInstance(null); |
52 } catch (NoSuchAlgorithmException e) { |
52 } catch (NoSuchAlgorithmException e) { |
53 System.out.println(" check"); |
53 System.out.println(" check"); |
54 Throwable t = e.getCause(); |
54 Throwable t = e.getCause(); |
55 if (!(t instanceof InvalidAlgorithmParameterException)) { |
55 if (!(t instanceof InvalidAlgorithmParameterException)) { |
|
56 // Some engines require certain parameters to be |
|
57 // present on creation. Calling newInstance(null) will |
|
58 // trigger this exception and it's OK. |
56 throw e; |
59 throw e; |
57 } |
60 } |
58 } |
61 } |
59 } |
62 } |
60 } |
63 } |