Class DSAPublicKeySpec

  • All Implemented Interfaces:
    KeySpec

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

      • DSAPublicKeySpec

        public DSAPublicKeySpec​(BigInteger y,
                                BigInteger p,
                                BigInteger q,
                                BigInteger g)
        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.
    • 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.
      • getY

        public BigInteger getY()
        Returns the public key value y.
        Returns:
        the public key value y.