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)

Added in 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 ()

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 getX ()

Added in API level 1

Returns the private key x.

Returns
  • the private key x.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.