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 the public key value y.
p the prime p.
q the sub-prime q.
g the base g.

Public Methods

public BigInteger getG ()

Added in API level 1

Returns the base g.

Returns
  • the base g.

public BigInteger getP ()

Added in API level 1

Returns the prime p.

Returns
  • the prime p.

public BigInteger getQ ()

Added in API level 1

Returns the sub-prime q.

Returns
  • the sub-prime q.

public BigInteger getY ()

Added in API level 1

Returns the public key value y.

Returns
  • the public key value y.