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 hosts| Modifier 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, waitcanVerify, canVerify, castAndApply, castAndApply, castAndApply, castAs, castAs, castAs, fromKeyStoreEntry, matches, matches, matches, verify, verifypublic 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()
CredentialCredential.clone in interface Credentialclone in class ObjectCredential.public static SSHCredential.Builder builder()
Copyright © 2021 JBoss by Red Hat. All rights reserved.