public class BytesIdentityInfo extends Object implements IdentityProvider
| Constructor and Description |
|---|
BytesIdentityInfo(byte[] privateKey,
byte[] passphrase)
Constructs an identity info with private and passphrase for the private key.
|
BytesIdentityInfo(byte[] privateKey,
byte[] publicKey,
byte[] passphrase)
Constructs an identity info with private and public key and passphrase for the private key.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addIdentity(com.jcraft.jsch.JSch jsch)
Add this identity to the given JSch.
|
boolean |
equals(Object obj) |
byte[] |
getPassphrase()
Gets the passphrase.
|
byte[] |
getPassPhrase()
Deprecated.
Use
getPassphrase(). |
byte[] |
getPrivateKeyBytes()
Gets the private key.
|
byte[] |
getPublicKeyBytes()
Gets the public key.
|
int |
hashCode() |
public BytesIdentityInfo(byte[] privateKey,
byte[] passphrase)
privateKey - Private key bytespassphrase - The passphrase to decrypt the private key (can be null if no passphrase is used)public BytesIdentityInfo(byte[] privateKey,
byte[] publicKey,
byte[] passphrase)
privateKey - Private key bytespublicKey - The public key part used for connections with exchange of certificates (can be null)passphrase - The passphrase to decrypt the private key (can be null if no passphrase is used)public void addIdentity(com.jcraft.jsch.JSch jsch)
throws com.jcraft.jsch.JSchException
IdentityProvideraddIdentity in interface IdentityProviderjsch - Target JSch.com.jcraft.jsch.JSchException - If I/O error occurs.public byte[] getPassphrase()
@Deprecated public byte[] getPassPhrase()
getPassphrase().public byte[] getPrivateKeyBytes()
public byte[] getPublicKeyBytes()
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.