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

DHPublicKeySpec

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

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

param
y the public value.
param
p the prime modulus.
param
g the base generator.

        this.y = y;
        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.BigIntegergetY()
Returns the public value y.

return
the public value y.

        return y;