| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javax.crypto.spec.DHParameterSpec
Diffie Hellman parameter specification.
Attention: This is not a SUN implementation!
 This class has been developed by IAIK according to the documentation publically available. 
 For SUNīs documentation of this class see 
 http://java.sun.com/security/JCE1.2/spec/apidoc/index.html
 
The Diffie Hellman algorithm has been the first public-key algorithm. It only can be used for key-agreement, but not for data encrypting and decrypting.
 PKCS#3 describes a
 method for implementing the Diffie Hellman key agreement where two (or more) entities use
 general Diffie Hellman parameters (an odd prime p, an integer base
 g satisfying 0 < g < p, and optionally an integer
 l prescribing the length of the private value), generated from some
 central authority (which may an entity itself), for creating a shared secret only known by them.
 
This class represents a specification for the prime modulus (p), base ganerator (g) and exponent length (l) parameters, as used by the Diffie-Hellman key exchange algorithm according to PKCS#3 (Diffie-Hellman Key Agreement Standard).
AlgorithmParameterSpec, 
DHGenParameterSpec| Field Summary | |
protected  BigInteger | 
g
 | 
protected  BigInteger | 
p
 | 
| Constructor Summary | |
DHParameterSpec(BigInteger p,
                BigInteger g)
Creates a Diffie-Hellman parameter specification, based on given prime modulus p and base generator g.  | 
|
DHParameterSpec(BigInteger p,
                BigInteger g,
                int l)
Creates a Diffie-Hellman parameter specification, based on given prime modulus p, base generator g, and random exponent size l.  | 
|
| Method Summary | |
 BigInteger | 
getG()
Returns the base generator g.  | 
 int | 
getL()
Returns the random exponent size l, in bits.  | 
 BigInteger | 
getP()
Returns the prime modulus p.  | 
 String | 
toString()
Returns a string representation of this Object.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
protected BigInteger p
protected BigInteger g
| Constructor Detail | 
public DHParameterSpec(BigInteger p,
                       BigInteger g)
p - the prime modulusg - the base generator
public DHParameterSpec(BigInteger p,
                       BigInteger g,
                       int l)
p - the prime modulusg - the base generatorl - the random exponent size in bits| Method Detail | 
public BigInteger getP()
public BigInteger getG()
public int getL()
public String toString()
toString in class Object
  | 
This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note). | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
  IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK