Android APIs
public class

DSAPublicKeySpec

extends Object
implements KeySpec
java.lang.Object
   ↳ java.security.spec.DSAPublicKeySpec

Class Overview

The parameters specifying a DSA public key.

Summary

Public Constructors
DSAPublicKeySpec(BigInteger y, BigInteger p, BigInteger q, BigInteger g)
Creates a new DSAPublicKeySpec with the specified public key, prime, sub-prime and base.
Public Methods
BigInteger getG()
Returns the base g.
BigInteger getP()
Returns the prime p.
BigInteger getQ()
Returns the sub-prime q.
BigInteger getY()
Returns the public key value y.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DSAPublicKeySpec (BigInteger y, BigInteger p, BigInteger q, BigInteger g)

Added in API level 1

Creates a new DSAPublicKeySpec with the specified public key, prime, sub-prime and base.

Parameters
y BigInteger: the public key value y.
p BigInteger: the prime p.
q BigInteger: the sub-prime q.
g BigInteger: the base g.

Public Methods

public BigInteger getG ()

Added in API level 1

Returns the base g.

Returns
BigInteger the base g.

public BigInteger getP ()

Added in API level 1

Returns the prime p.

Returns
BigInteger the prime p.

public BigInteger getQ ()

Added in API level 1

Returns the sub-prime q.

Returns
BigInteger the sub-prime q.

public BigInteger getY ()

Added in API level 1

Returns the public key value y.

Returns
BigInteger the public key value y.