Class DSAPrivateKeySpec

  • All Implemented Interfaces:
    KeySpec

    public class DSAPrivateKeySpec
    extends Object
    implements KeySpec
    The parameters specifying a DSA private key.
    • Constructor Detail

      • DSAPrivateKeySpec

        public DSAPrivateKeySpec​(BigInteger x,
                                 BigInteger p,
                                 BigInteger q,
                                 BigInteger g)
        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.
    • Method Detail

      • getG

        public BigInteger getG()
        Returns the base g.
        Returns:
        the base g.
      • getP

        public BigInteger getP()
        Returns the prime p.
        Returns:
        the prime p.
      • getQ

        public BigInteger getQ()
        Returns the sub-prime q.
        Returns:
        the sub-prime q.
      • getX

        public BigInteger getX()
        Returns the private key x.
        Returns:
        the private key x.