public final class Identity extends Object
Modifier and Type | Method and Description |
---|---|
static Identity |
fromData(String name,
byte[] privateKey,
byte[] publicKey,
byte[] passphrase)
Creates a key pair from a private key and public key.
|
static Identity |
fromFiles(File privateKeyFile)
Creates a key pair from private key and public key files.
|
static Identity |
fromFiles(File privateKeyFile,
byte[] passphrase)
Creates a key pair from private key and public key files.
|
static Identity |
fromFiles(File privateKeyFile,
File publicKeyFile,
byte[] passphrase)
Creates a key pair from private key and public key files.
|
static Identity |
fromFiles(File privateKeyFile,
String passphrase)
Creates a key pair from private key and public key files.
|
public static Identity fromFiles(File privateKeyFile)
.pub
appended to the name.privateKeyFile
- The private key file.public static Identity fromFiles(File privateKeyFile, String passphrase)
.pub
appended to the name.privateKeyFile
- The private key file.passphrase
- The passphrase for the private key.public static Identity fromFiles(File privateKeyFile, byte[] passphrase)
.pub
appended to the name.privateKeyFile
- The private key file.passphrase
- The passphrase for the private key.public static Identity fromFiles(File privateKeyFile, File publicKeyFile, byte[] passphrase)
privateKeyFile
- The private key file.publicKeyFile
- The public key file.passphrase
- The passphrase for the private key.public static Identity fromData(String name, byte[] privateKey, byte[] publicKey, byte[] passphrase)
name
- The name of the key pair.privateKey
- The private key data.publicKey
- The public key data.passphrase
- The passphrase for the private key.Copyright © 2016–2023. All rights reserved.