| 
OpenShift Java Client 2.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openshift.internal.client.AbstractOpenShiftResource
com.openshift.internal.client.SSHKeyResource
public class SSHKeyResource
| Nested Class Summary | 
|---|
| Nested classes/interfaces inherited from class com.openshift.internal.client.AbstractOpenShiftResource | 
|---|
AbstractOpenShiftResource.Parameters, AbstractOpenShiftResource.ServiceRequest | 
| Constructor Summary | |
|---|---|
protected  | 
SSHKeyResource(KeyResourceDTO dto,
               UserResource user)
 | 
| Method Summary | |
|---|---|
 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)
 | 
| Methods inherited from class com.openshift.internal.client.AbstractOpenShiftResource | 
|---|
getCreationLog, getLink, getMessages, hasCreationLog, setLinks | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
protected SSHKeyResource(KeyResourceDTO dto,
                         UserResource user)
                  throws OpenShiftUnknonwSSHKeyTypeException
OpenShiftUnknonwSSHKeyTypeException| Method Detail | 
|---|
public void setKeyType(SSHKeyType type,
                       String publicKey)
                throws OpenShiftException
IOpenShiftSSHKey
setKeyType in interface IOpenShiftSSHKeyOpenShiftExceptionpublic String getName()
IOpenShiftSSHKey
getName in interface IOpenShiftSSHKeypublic SSHKeyType getKeyType()
ISSHPublicKey
getKeyType in interface ISSHPublicKey
public void setPublicKey(String publicKey)
                  throws OpenShiftException
IOpenShiftSSHKey
setPublicKey in interface IOpenShiftSSHKeypublicKey - the new public key porition of this key
OpenShiftExceptionpublic String getPublicKey()
ISSHPublicKey
getPublicKey in interface ISSHPublicKey
public void refresh()
             throws OpenShiftException
IOpenShiftResource
refresh in interface IOpenShiftResourceOpenShiftException
public void destroy()
             throws OpenShiftException
destroy in interface IOpenShiftSSHKeyOpenShiftException
protected void update(KeyResourceDTO dto)
               throws OpenShiftUnknonwSSHKeyTypeException
OpenShiftUnknonwSSHKeyTypeExceptionpublic String toString()
toString in class Object
  | 
OpenShift Java Client 2.5.0.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||