to top
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)

Since: API Level 1

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

Parameters
x the private key x.
p the prime p.
q the sub-prime q.
g the base g.

Public Methods

public BigInteger getG ()

Since: API Level 1

Returns the base g.

Returns
  • the base g.

public BigInteger getP ()

Since: API Level 1

Returns the prime p.

Returns
  • the prime p.

public BigInteger getQ ()

Since: API Level 1

Returns the sub-prime q.

Returns
  • the sub-prime q.

public BigInteger getX ()

Since: API Level 1

Returns the private key x.

Returns
  • the private key x.