Class ECDSAKeyFactory

java.lang.Object
net.schmizz.sshj.common.ECDSAKeyFactory

public class ECDSAKeyFactory extends Object
Factory for generating Elliptic Curve Keys using Java Security components for NIST Curves
  • Method Details

    • getPrivateKey

      public static PrivateKey getPrivateKey(BigInteger privateKeyInteger, ECDSACurve ecdsaCurve) throws GeneralSecurityException
      Get Elliptic Curve Private Key for private key value and Curve Name
      Parameters:
      privateKeyInteger - Private Key
      ecdsaCurve - Elliptic Curve
      Returns:
      Elliptic Curve Private Key
      Throws:
      GeneralSecurityException - Thrown on failure to create parameter specification
    • getPublicKey

      public static PublicKey getPublicKey(ECPoint point, ECDSACurve ecdsaCurve) throws GeneralSecurityException
      Get Elliptic Curve Public Key for public key value and Curve Name
      Parameters:
      point - Public Key point
      ecdsaCurve - Elliptic Curve
      Returns:
      Elliptic Curve Public Key
      Throws:
      GeneralSecurityException - Thrown on failure to create parameter specification