public class SSHKeyCredential extends Credential
Modifier and Type | Class and Description |
---|---|
static class |
SSHKeyCredential.PRIVATE_KEY_TYPES
The type of the private key.
|
Modifier and Type | Field and Description |
---|---|
static String |
TYPENAME |
SCOPE_GLOBAL
Constructor and Description |
---|
SSHKeyCredential() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
dataForCreate() |
Map<String,Object> |
dataForUpdate() |
String |
getPassphrase() |
SSHKeyCredential.PRIVATE_KEY_TYPES |
getPrivateKeyType() |
String |
getPrivateKeyValue() |
String |
getUsername() |
void |
setPassphrase(String passphrase)
Set the passphrash of the ssh key
|
void |
setPrivateKeyType(SSHKeyCredential.PRIVATE_KEY_TYPES privateKeyType)
The source of the private key.
|
void |
setPrivateKeyValue(String privateKeyValue)
Set the value of the private key.
|
void |
setUsername(String username)
Set the username of the ssh key
|
getDescription, getDisplayName, getFullName, getId, getScope, getTypeName, setDescription, setDisplayName, setFullName, setId, setScope, setTypeName, useMultipartForm
public static final String TYPENAME
public String getUsername()
public void setUsername(String username)
username
- public String getPassphrase()
public void setPassphrase(String passphrase)
passphrase
- public String getPrivateKeyValue()
public void setPrivateKeyValue(String privateKeyValue)
privateKeyValue
- public SSHKeyCredential.PRIVATE_KEY_TYPES getPrivateKeyType()
public void setPrivateKeyType(SSHKeyCredential.PRIVATE_KEY_TYPES privateKeyType)
privateKeyType
- public Map<String,Object> dataForCreate()
dataForCreate
in class Credential
public Map<String,Object> dataForUpdate()
dataForUpdate
in class Credential
Copyright © 2017 JBoss by Red Hat. All rights reserved.