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) |
byte[] |
getPassPhrase() |
byte[] |
getPrivateKeyBytes() |
byte[] |
getPublicKeyBytes() |
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
addIdentity
in interface IdentityProvider
com.jcraft.jsch.JSchException
public byte[] getPassPhrase()
public byte[] getPrivateKeyBytes()
public byte[] getPublicKeyBytes()
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.