public class RSAUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_STRENGTH |
| Constructor and Description |
|---|
RSAUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.PublicKey |
decodePublicKey(java.lang.String encKey) |
static java.lang.String |
encodeKey(java.security.Key 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.
|
static java.security.KeyPair |
newKeyPair(io.nessus.Wallet.Address addr,
int strenght) |
public static final int DEFAULT_STRENGTH
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.security.KeyPair newKeyPair(io.nessus.Wallet.Address addr,
int strenght)
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)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionCopyright © 2019. All rights reserved.