public class ECIESUtils
extends java.lang.Object
| Constructor and Description |
|---|
ECIESUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.PublicKey |
decodePublicKey(java.lang.String encKey)
Decode public key from the given base64 encoded string
Note, this requiers unlimited security policies
|
static java.lang.String |
encodeKey(java.security.Key key)
Encode the given key
|
static java.security.KeyPair |
newKeyPair()
Generate the key pair from a random source.
|
static java.security.KeyPair |
newKeyPair(io.nessus.Wallet.Address addr)
Derive the key pair from blockchain private key.
|
public static java.security.KeyPair newKeyPair()
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static java.security.KeyPair newKeyPair(io.nessus.Wallet.Address addr)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static java.lang.String encodeKey(java.security.Key key)
public static java.security.PublicKey decodePublicKey(java.lang.String encKey)
Copyright © 2019. All rights reserved.