KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > interfaces > DSAParams


1 /*
2  * @(#)DSAParams.java 1.20 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  
8 package java.security.interfaces;
9
10 import java.math.BigInteger JavaDoc;
11
12 /**
13  * Interface to a DSA-specific set of key parameters, which defines a
14  * DSA <em>key family</em>. DSA (Digital Signature Algorithm) is defined
15  * in NIST's FIPS-186.
16  *
17  * @see DSAKey
18  * @see java.security.Key
19  * @see java.security.Signature
20  *
21  * @version 1.20 03/12/19
22  * @author Benjamin Renaud
23  * @author Josh Bloch
24  */

25 public interface DSAParams {
26
27     /**
28      * Returns the prime, <code>p</code>.
29      *
30      * @return the prime, <code>p</code>.
31      */

32     public BigInteger JavaDoc getP();
33
34     /**
35      * Returns the subprime, <code>q</code>.
36      *
37      * @return the subprime, <code>q</code>.
38      */

39     public BigInteger JavaDoc getQ();
40
41     /**
42      * Returns the base, <code>g</code>.
43      *
44      * @return the base, <code>g</code>.
45      */

46     public BigInteger JavaDoc getG();
47 }
48
Popular Tags