public class SshKeyCredential extends Credential
Credential.CredentialTypelogger| 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, setSecretCoverpublic 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 Credentialpublic void setUsername(String userName) throws FMWCredentialsException
setUsername in class CredentialFMWCredentialsExceptionprotected boolean allowNullPassword()
CredentialallowNullPassword in class Credentialpublic String toString()
toString in class Credential