Class DSAKeyInfo

  • All Implemented Interfaces:
    KeyInfo

    public class DSAKeyInfo
    extends java.lang.Object
    implements KeyInfo
    Version:
    $Revision: 1.12 $
    Author:
    $author$
    • Constructor Detail

      • DSAKeyInfo

        public DSAKeyInfo​(java.math.BigInteger p,
                          java.math.BigInteger q,
                          java.math.BigInteger g,
                          java.math.BigInteger x,
                          java.math.BigInteger y)
        Creates a new DSAKeyInfo object.
        Parameters:
        p -
        q -
        g -
        x -
        y -
    • Method Detail

      • getG

        public java.math.BigInteger getG()
        Returns:
      • getP

        public java.math.BigInteger getP()
        Returns:
      • getQ

        public java.math.BigInteger getQ()
        Returns:
      • getX

        public java.math.BigInteger getX()
        Returns:
      • getY

        public java.math.BigInteger getY()
        Returns:
      • getPrivateKeySpec

        public java.security.spec.KeySpec getPrivateKeySpec()
        Specified by:
        getPrivateKeySpec in interface KeyInfo
        Returns:
      • getPublicKeySpec

        public java.security.spec.KeySpec getPublicKeySpec()
        Specified by:
        getPublicKeySpec in interface KeyInfo
        Returns:
      • getDSAKeyInfo

        public static DSAKeyInfo getDSAKeyInfo​(SimpleASNReader asn)
                                        throws java.io.IOException
        Parameters:
        asn -
        Returns:
        Throws:
        java.io.IOException
      • writeDSAKeyInfo

        public static void writeDSAKeyInfo​(SimpleASNWriter asn,
                                           DSAKeyInfo keyInfo)
        Parameters:
        asn -
        keyInfo -