FileDocCategorySizeDatePackage
DSAPrivateKeySpec.javaAPI DocAndroid 1.5 API2507Wed May 06 22:41:06 BST 2009java.security.spec

DSAPrivateKeySpec

public class DSAPrivateKeySpec extends Object implements KeySpec
The parameters specifying a DSA private key.
since
Android 1.0

Fields Summary
private final BigInteger
x
private final BigInteger
p
private final BigInteger
q
private final BigInteger
g
Constructors Summary
public DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
Creates a new {@code DSAPrivateKeySpec} with the specified private key, prime, sub-prime and base.

param
x the private key {@code x}.
param
p the prime {@code p}.
param
q the sub-prime {@code q}.
param
g the base {@code g}.
since
Android 1.0

        this.x = x;
        this.p = p;
        this.q = q;
        this.g = g;
    
Methods Summary
public java.math.BigIntegergetG()
Returns the base {@code g}.

return
the base {@code g}.
since
Android 1.0

        return g;
    
public java.math.BigIntegergetP()
Returns the prime {@code p}.

return
the prime {@code p}.
since
Android 1.0

        return p;
    
public java.math.BigIntegergetQ()
Returns the sub-prime {@code q}.

return
the sub-prime {@code q}.
since
Android 1.0

        return q;
    
public java.math.BigIntegergetX()
Returns the private key {@code x}.

return
the private key {@code x}.
since
Android 1.0

        return x;