public class SSHCredential extends Object implements Credential
Credential
) of a Private key in an external
file and/or the name of the file containing the known hostsModifier and Type | Class and Description |
---|---|
static class |
SSHCredential.Builder
A builder for SSHCredential.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_KNOWN_HOSTS |
static String[] |
DEFAULT_PRIVATE_KEYS |
static File |
DEFAULT_SSH_DIRECTORY |
NO_CREDENTIALS
Modifier and Type | Method and Description |
---|---|
static SSHCredential.Builder |
builder() |
Credential |
clone()
Creates and returns a copy of this
Credential . |
boolean |
equals(Object obj) |
String |
getKnownHostsFile()
Get the file containing the known SSH hosts
|
Credential |
getPassphrase()
Get the passphrase used to decrypt the private key
|
String[] |
getPrivateKeyIdentities()
Get the list of private key file names
|
File |
getSshDirectory()
Get the SSH directory containing the private key file and known hosts file
|
int |
hashCode() |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
canVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, fromKeyStoreEntry, matches, matches, matches, verify, verify
public static File DEFAULT_SSH_DIRECTORY
public static String[] DEFAULT_PRIVATE_KEYS
public static String DEFAULT_KNOWN_HOSTS
public File getSshDirectory()
public String[] getPrivateKeyIdentities()
public Credential getPassphrase()
public String getKnownHostsFile()
public Credential clone()
Credential
Credential
.clone
in interface Credential
clone
in class Object
Credential
.public static SSHCredential.Builder builder()
Copyright © 2021 JBoss by Red Hat. All rights reserved.