OpenShift Java Client 2.5.0.Final

com.openshift.internal.client.ssh
Class AbstractSSHKey

java.lang.Object
  extended by com.openshift.internal.client.ssh.AbstractSSHKey
All Implemented Interfaces:
ISSHPublicKey
Direct Known Subclasses:
SSHKeyPair, SSHPublicKey

public abstract class AbstractSSHKey
extends Object
implements ISSHPublicKey

Author:
Andre Dietisheim

Constructor Summary
protected AbstractSSHKey(SSHKeyType sshKeyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 SSHKeyType getKeyType()
          Returns the type of the key (ssh-rsa or ssh-dss)
 int hashCode()
           
protected  void setKeyType(SSHKeyType keyType)
           
protected  void setKeyType(String keyTypeId)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.openshift.client.ISSHPublicKey
getPublicKey
 

Constructor Detail

AbstractSSHKey

protected AbstractSSHKey(SSHKeyType sshKeyType)
Method Detail

getKeyType

public SSHKeyType getKeyType()
Description copied from interface: ISSHPublicKey
Returns the type of the key (ssh-rsa or ssh-dss)

Specified by:
getKeyType in interface ISSHPublicKey
Returns:
the type of key, either ssh-rsa or ssh-dss

setKeyType

protected void setKeyType(String keyTypeId)
                   throws OpenShiftUnknonwSSHKeyTypeException
Throws:
OpenShiftUnknonwSSHKeyTypeException

setKeyType

protected void setKeyType(SSHKeyType keyType)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

OpenShift Java Client 2.5.0.Final

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