FileDocCategorySizeDatePackage
DSAPublicKeySpec.javaAPI DocAndroid 1.5 API2516Wed May 06 22:41:06 BST 2009java.security.spec

DSAPublicKeySpec

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

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

param
y the public key value {@code y}.
param
p the prime {@code p}.
param
q the sub-prime {@code q}.
param
g the base {@code g}.
since
Android 1.0

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

return
the public key value {@code y}.
since
Android 1.0

        return y;