Class JCEECPrivateKey

    • Field Detail

      • algorithm

        private java.lang.String algorithm
      • d

        private java.math.BigInteger d
      • pkcs12Attributes

        private java.util.Hashtable pkcs12Attributes
      • pkcs12Ordering

        private java.util.Vector pkcs12Ordering
    • Method Detail

      • getAlgorithm

        public java.lang.String getAlgorithm()
        Specified by:
        getAlgorithm in interface java.security.Key
      • getFormat

        public java.lang.String getFormat()
        return the encoding format we produce in getEncoded().
        Specified by:
        getFormat in interface java.security.Key
        Returns:
        the string "PKCS#8"
      • getEncoded

        public byte[] getEncoded()
        Return a PKCS8 representation of the key. The sequence returned represents a full PrivateKeyInfo object.
        Specified by:
        getEncoded in interface java.security.Key
        Returns:
        a PKCS8 representation of the key.
      • getParams

        public ECParameterSpec getParams()
        Description copied from interface: ECKey
        return a parameter specification representing the EC domain parameters for the key.
        Specified by:
        getParams in interface ECKey
      • getD

        public java.math.BigInteger getD()
        Description copied from interface: ECPrivateKey
        return the private value D.
        Specified by:
        getD in interface ECPrivateKey