Code example for InvalidAlgorithmParameterException

0
                                //     ecP = TeleTrusTNamedCurves.getByOID(oid); 
                                // } 
                                // END android-removed 
                                if (ecP == null)
                                { 
                                    throw new InvalidAlgorithmParameterException("unknown curve OID: " + curveName);
                                } 
                            } 
                            catch (IllegalArgumentException ex)
                            { 
                                throw new InvalidAlgorithmParameterException("unknown curve name: " + curveName);
                            } 
                        } 
                    } 
 
                    this.ecParams = new ECNamedCurveSpec(
                            curveName,
                            ecP.getCurve(),
                            ecP.getG(),
                            ecP.getN(),
                            ecP.getH(),