FileDocCategorySizeDatePackage
DHPrivateKeySpec.javaAPI DocAndroid 1.5 API2229Wed May 06 22:41:02 BST 2009javax.crypto.spec

DHPrivateKeySpec

public class DHPrivateKeySpec extends Object implements KeySpec
The key specification for a Diffie-Hellman private key.
since
Android 1.0

Fields Summary
private final BigInteger
x
private final BigInteger
p
private final BigInteger
g
Constructors Summary
public DHPrivateKeySpec(BigInteger x, BigInteger p, BigInteger g)
Creates a new DHPrivateKeySpec with the specified private value x. prime modulus p and base generator g.

param
x the private value.
param
p the prime modulus.
param
g the base generator.

        this.x = x;
        this.p = p;
        this.g = g;
    
Methods Summary
public java.math.BigIntegergetG()
Returns the base generator g.

return
the base generator g.

        return g;
    
public java.math.BigIntegergetP()
Returns the prime modulus p.

return
the prime modulus p.

        return p;
    
public java.math.BigIntegergetX()
Returns the private value x.

return
the private value x.

        return x;