Android APIs
public class

DSAPrivateKeySpec

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

Class Overview

The parameters specifying a DSA private key.

Summary

Public Constructors
DSAPrivateKeySpec(BigInteger x, BigInteger p, BigInteger q, BigInteger g)
Creates a new DSAPrivateKeySpec with the specified private 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 getX()
Returns the private key x.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DSAPrivateKeySpec (BigInteger x, BigInteger p, BigInteger q, BigInteger g)

Added in API level 1

Creates a new DSAPrivateKeySpec with the specified private key, prime, sub-prime and base.

Parameters
x BigInteger: the private key x.
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 getX ()

Added in API level 1

Returns the private key x.

Returns
BigInteger the private key x.