public class SSHKeyResource extends AbstractOpenShiftResource implements IOpenShiftSSHKey
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest| Modifier | Constructor and Description |
|---|---|
protected |
SSHKeyResource(KeyResourceDTO dto,
UserResource user) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
SSHKeyType |
getKeyType()
Returns the type of the key (ssh-rsa or ssh-dss)
|
String |
getName()
Returns the name that is used to store this key on OpenShift.
|
String |
getPublicKey()
Returns the content of the public key (key content without ssh-rsa
identifier nor comment) of the ssh key
|
void |
refresh()
Refresh the resource and its list of children resources that were
previously loaded
|
void |
setKeyType(SSHKeyType type,
String publicKey)
Sets the new type and public key of this ssh key to the OpenShift PaaS
|
void |
setPublicKey(String publicKey)
Sets the public key portion of this ssh key to the OpenShift PaaS.
|
String |
toString() |
protected void |
update(KeyResourceDTO dto) |
getCreationLog, getLink, getMessages, hasCreationLog, setLinksprotected SSHKeyResource(KeyResourceDTO dto, UserResource user) throws OpenShiftUnknonwSSHKeyTypeException
public void setKeyType(SSHKeyType type, String publicKey) throws OpenShiftException
IOpenShiftSSHKeysetKeyType in interface IOpenShiftSSHKeyOpenShiftExceptionpublic String getName()
IOpenShiftSSHKeygetName in interface IOpenShiftSSHKeypublic SSHKeyType getKeyType()
ISSHPublicKeygetKeyType in interface ISSHPublicKeypublic void setPublicKey(String publicKey) throws OpenShiftException
IOpenShiftSSHKeysetPublicKey in interface IOpenShiftSSHKeypublicKey - the new public key porition of this keyOpenShiftExceptionpublic String getPublicKey()
ISSHPublicKeygetPublicKey in interface ISSHPublicKeypublic void refresh()
throws OpenShiftException
IOpenShiftResourcerefresh in interface IOpenShiftResourceOpenShiftExceptionpublic void destroy()
throws OpenShiftException
destroy in interface IOpenShiftSSHKeyOpenShiftExceptionprotected void update(KeyResourceDTO dto) throws OpenShiftUnknonwSSHKeyTypeException
Copyright © 2016 JBoss by Red Hat. All rights reserved.