140 |
{ |
{ |
141 |
if (provider == null) |
if (provider == null) |
142 |
{ |
{ |
143 |
throw new IllegalArgumentException(); |
throw new IllegalArgumentException("null provider"); |
144 |
} |
} |
145 |
Provider p = Security.getProvider(provider); |
Provider p = Security.getProvider(provider); |
146 |
if (p == null) |
if (p == null) |
174 |
} |
} |
175 |
catch (InvocationTargetException ite) |
catch (InvocationTargetException ite) |
176 |
{ |
{ |
177 |
ite.printStackTrace(); |
NoSuchAlgorithmException nsae = new NoSuchAlgorithmException(protocol); |
178 |
throw new NoSuchAlgorithmException(); |
throw (NoSuchAlgorithmException) nsae.initCause(ite); |
179 |
} |
} |
180 |
catch (ClassCastException cce) |
catch (ClassCastException cce) |
181 |
{ |
{ |
182 |
cce.printStackTrace(); |
NoSuchAlgorithmException nsae = new NoSuchAlgorithmException(protocol); |
183 |
throw new NoSuchAlgorithmException(); |
throw (NoSuchAlgorithmException) nsae.initCause(cce); |
184 |
} |
} |
185 |
} |
} |
186 |
|
|