OpenShift Java Client 2.5.0.Final

com.openshift.client
Class SSHPublicKey

java.lang.Object
  extended by com.openshift.internal.client.ssh.AbstractSSHKey
      extended by com.openshift.client.SSHPublicKey
All Implemented Interfaces:
ISSHPublicKey

public class SSHPublicKey
extends AbstractSSHKey

Author:
André Dietisheim

Constructor Summary
SSHPublicKey(File publicKeyFile)
           
SSHPublicKey(String publicKeyFilePath)
           
 
Method Summary
 String getPublicKey()
          Returns the content of the public key (key content without ssh-rsa identifier nor comment) of the ssh key
 
Methods inherited from class com.openshift.internal.client.ssh.AbstractSSHKey
equals, getKeyType, hashCode, setKeyType, setKeyType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSHPublicKey

public SSHPublicKey(String publicKeyFilePath)
             throws FileNotFoundException,
                    OpenShiftException,
                    IOException
Throws:
FileNotFoundException
OpenShiftException
IOException

SSHPublicKey

public SSHPublicKey(File publicKeyFile)
             throws FileNotFoundException,
                    OpenShiftException,
                    IOException
Throws:
FileNotFoundException
OpenShiftException
IOException
Method Detail

getPublicKey

public String getPublicKey()
Description copied from interface: ISSHPublicKey
Returns the content of the public key (key content without ssh-rsa identifier nor comment) of the ssh key

Returns:
the content of the public key (without signature, without comment)

OpenShift Java Client 2.5.0.Final

Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.