KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > spec > ECGenParameterSpec


1 /*
2  * @(#)ECGenParameterSpec.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package java.security.spec;
8
9 /**
10  * This immutable class specifies the set of parameters used for
11  * generating elliptic curve (EC) domain parameters.
12  *
13  * @see AlgorithmParameterSpec
14  *
15  * @author Valerie Peng
16  * @version 1.3, 12/19/03
17  *
18  * @since 1.5
19  */

20 public class ECGenParameterSpec implements AlgorithmParameterSpec JavaDoc {
21     
22     private String JavaDoc name;
23
24     /**
25      * Creates a parameter specification for EC parameter
26      * generation using a standard (or predefined) name
27      * <code>stdName</code> in order to generate the corresponding
28      * (precomputed) elliptic curve domain parameters. For the
29      * list of supported names, please consult the documentation
30      * of provider whose implementation will be used.
31      * @param stdName the standard name of the to-be-generated EC
32      * domain parameters.
33      * @exception NullPointerException if <code>stdName</code>
34      * is null.
35      */

36     public ECGenParameterSpec(String JavaDoc stdName) {
37     if (stdName == null) {
38         throw new NullPointerException JavaDoc("stdName is null");
39         }
40     this.name = stdName;
41     }
42
43     /**
44      * Returns the standard or predefined name of the
45      * to-be-generated EC domain parameters.
46      * @return the standard or predefined name.
47      */

48     public String JavaDoc getName() {
49     return name;
50     }
51 }
52
Popular Tags