Class ECPrivateKey

    • Constructor Detail

      • ECPrivateKey

        public ECPrivateKey​(java.math.BigInteger key)
        Deprecated.
        use constructor which takes orderBitLength to guarantee correct encoding.
      • ECPrivateKey

        public ECPrivateKey​(int orderBitLength,
                            java.math.BigInteger key)
        Base constructor.
        Parameters:
        orderBitLength - the bitLength of the order of the curve.
        key - the private key value.
      • ECPrivateKey

        public ECPrivateKey​(java.math.BigInteger key,
                            ASN1Encodable parameters)
        Deprecated.
        use constructor which takes orderBitLength to guarantee correct encoding.
      • ECPrivateKey

        public ECPrivateKey​(java.math.BigInteger key,
                            DERBitString publicKey,
                            ASN1Encodable parameters)
        Deprecated.
        use constructor which takes orderBitLength to guarantee correct encoding.
      • ECPrivateKey

        public ECPrivateKey​(int orderBitLength,
                            java.math.BigInteger key,
                            ASN1Encodable parameters)
      • ECPrivateKey

        public ECPrivateKey​(int orderBitLength,
                            java.math.BigInteger key,
                            DERBitString publicKey,
                            ASN1Encodable parameters)
    • Method Detail

      • getInstance

        public static ECPrivateKey getInstance​(java.lang.Object obj)
      • getKey

        public java.math.BigInteger getKey()
      • toASN1Primitive

        public ASN1Primitive toASN1Primitive()
        ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] Parameters OPTIONAL, publicKey [1] BIT STRING OPTIONAL }
        Specified by:
        toASN1Primitive in interface ASN1Encodable
        Specified by:
        toASN1Primitive in class ASN1Object
        Returns:
        a primitive representation of this object.