equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
45 * Creates a new ECPublicKeySpec with the specified |
45 * Creates a new ECPublicKeySpec with the specified |
46 * parameter values. |
46 * parameter values. |
47 * @param w the public point. |
47 * @param w the public point. |
48 * @param params the associated elliptic curve domain |
48 * @param params the associated elliptic curve domain |
49 * parameters. |
49 * parameters. |
50 * @exception NullPointerException if {@code w} |
50 * @throws NullPointerException if {@code w} |
51 * or {@code params} is null. |
51 * or {@code params} is null. |
52 * @exception IllegalArgumentException if {@code w} |
52 * @throws IllegalArgumentException if {@code w} |
53 * is point at infinity, i.e. ECPoint.POINT_INFINITY |
53 * is point at infinity, i.e. ECPoint.POINT_INFINITY |
54 */ |
54 */ |
55 public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { |
55 public ECPublicKeySpec(ECPoint w, ECParameterSpec params) { |
56 if (w == null) { |
56 if (w == null) { |
57 throw new NullPointerException("w is null"); |
57 throw new NullPointerException("w is null"); |