Class Keys

java.lang.Object
com.bradyrussell.uiscoin.Keys

public class Keys
extends java.lang.Object
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  Keys.SignedData  
  • Constructor Summary

    Constructors 
    Constructor Description
    Keys()  
  • Method Summary

    Modifier and Type Method Description
    static java.security.interfaces.ECPublicKey getPublicKeyFromPrivateKey​(java.security.interfaces.ECPrivateKey PrivateKey)  
    static java.security.KeyPair loadKeys​(byte[] Public, byte[] Private)  
    static java.security.KeyPair makeKeyPair​(byte[] Seed)  
    static Keys.SignedData signData​(java.security.KeyPair Keys, byte[] Message)  
    static boolean verifySignedData​(Keys.SignedData Message)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Keys

      public Keys()
  • Method Details

    • makeKeyPair

      public static java.security.KeyPair makeKeyPair​(byte[] Seed) throws java.security.NoSuchAlgorithmException, java.security.InvalidAlgorithmParameterException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.InvalidAlgorithmParameterException
    • signData

      public static Keys.SignedData signData​(java.security.KeyPair Keys, byte[] Message) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.SignatureException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.InvalidKeyException
      java.security.SignatureException
    • verifySignedData

      public static boolean verifySignedData​(Keys.SignedData Message) throws java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException, java.security.InvalidKeyException, java.security.SignatureException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.spec.InvalidKeySpecException
      java.security.InvalidKeyException
      java.security.SignatureException
    • loadKeys

      public static java.security.KeyPair loadKeys​(byte[] Public, byte[] Private) throws java.security.NoSuchAlgorithmException, java.security.spec.InvalidKeySpecException, java.security.InvalidKeyException, java.security.SignatureException
      Throws:
      java.security.NoSuchAlgorithmException
      java.security.spec.InvalidKeySpecException
      java.security.InvalidKeyException
      java.security.SignatureException
    • getPublicKeyFromPrivateKey

      public static java.security.interfaces.ECPublicKey getPublicKeyFromPrivateKey​(java.security.interfaces.ECPrivateKey PrivateKey) throws java.security.GeneralSecurityException
      Throws:
      java.security.GeneralSecurityException