public class SshKeyCredential extends Credential
Credential.CredentialType
logger
Constructor and Description |
---|
SshKeyCredential(String alias,
String sshKey)
Create an SSH key credential.
|
SshKeyCredential(String alias,
String sshKey,
char[] passPhrase)
Create an SSH key credential.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowNullPassword()
Determine if null password is allowed by this credential type.
|
String |
getUsername() |
void |
setUsername(String userName) |
String |
toString() |
equals, getAlias, getCoveredPassword, getPassword, getSecretCover, getType, hashCode, isPassphraseCredential, isSshKeyCredential, isUserCredential, setAlias, setPassword, setSecretCover
public SshKeyCredential(String alias, String sshKey) throws FMWCredentialsException
alias
- the credential aliassshKey
- the SHH keyFMWCredentialsException
- if an error occurspublic SshKeyCredential(String alias, String sshKey, char[] passPhrase) throws FMWCredentialsException
alias
- the credential aliassshKey
- the SHH keypassPhrase
- the pass phrase for the SSH keyFMWCredentialsException
- if an error occurspublic String getUsername()
getUsername
in class Credential
public void setUsername(String userName) throws FMWCredentialsException
setUsername
in class Credential
FMWCredentialsException
protected boolean allowNullPassword()
Credential
allowNullPassword
in class Credential
public String toString()
toString
in class Credential