Class X9ECParameters

    • Constructor Detail

      • X9ECParameters

        public X9ECParameters​(ECCurve curve,
                              X9ECPoint g,
                              java.math.BigInteger n)
      • X9ECParameters

        public X9ECParameters​(ECCurve curve,
                              X9ECPoint g,
                              java.math.BigInteger n,
                              java.math.BigInteger h)
      • X9ECParameters

        public X9ECParameters​(ECCurve curve,
                              X9ECPoint g,
                              java.math.BigInteger n,
                              java.math.BigInteger h,
                              byte[] seed)
    • Method Detail

      • getInstance

        public static X9ECParameters getInstance​(java.lang.Object obj)
      • getCurve

        public ECCurve getCurve()
      • getN

        public java.math.BigInteger getN()
      • getH

        public java.math.BigInteger getH()
      • getSeed

        public byte[] getSeed()
      • hasSeed

        public boolean hasSeed()
      • getCurveEntry

        public X9Curve getCurveEntry()
        Return the ASN.1 entry representing the Curve.
        Returns:
        the X9Curve for the curve in these parameters.
      • getFieldIDEntry

        public X9FieldID getFieldIDEntry()
        Return the ASN.1 entry representing the FieldID.
        Returns:
        the X9FieldID for the FieldID in these parameters.
      • getBaseEntry

        public X9ECPoint getBaseEntry()
        Return the ASN.1 entry representing the base point G.
        Returns:
        the X9ECPoint for the base point in these parameters.
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        Produce an object suitable for an ASN1OutputStream.
          ECParameters ::= SEQUENCE {
              version         INTEGER { ecpVer1(1) } (ecpVer1),
              fieldID         FieldID {{FieldTypes}},
              curve           X9Curve,
              base            X9ECPoint,
              order           INTEGER,
              cofactor        INTEGER OPTIONAL
          }
         
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a primitive representation of this object.