OpenShift Java Client 2.5.0.Final

com.openshift.client
Enum SSHKeyType

java.lang.Object
  extended by java.lang.Enum<SSHKeyType>
      extended by com.openshift.client.SSHKeyType
All Implemented Interfaces:
Serializable, Comparable<SSHKeyType>

public enum SSHKeyType
extends Enum<SSHKeyType>

Author:
Andre Dietisheim

Enum Constant Summary
SSH_DSA
           
SSH_RSA
           
 
Method Summary
static SSHKeyType getByJSchKeyType(int jschKeyType)
           
static SSHKeyType getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair)
           
static SSHKeyType getByTypeId(String keyTypeId)
           
 String getTypeId()
           
 int toJSchKeyType()
          Returns the JSch key pair constant for a given SSHKeyType.
static SSHKeyType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SSHKeyType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SSH_RSA

public static final SSHKeyType SSH_RSA

SSH_DSA

public static final SSHKeyType SSH_DSA
Method Detail

values

public static SSHKeyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SSHKeyType c : SSHKeyType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SSHKeyType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getTypeId

public String getTypeId()

toJSchKeyType

public int toJSchKeyType()
Returns the JSch key pair constant for a given SSHKeyType.

Parameters:
type - the SSHKeyType that the JSch KeyPair constant will get returned for
Returns:

getByTypeId

public static SSHKeyType getByTypeId(String keyTypeId)
                              throws OpenShiftUnknonwSSHKeyTypeException
Throws:
OpenShiftUnknonwSSHKeyTypeException

getByJSchKeyType

public static SSHKeyType getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair)
                                   throws OpenShiftUnknonwSSHKeyTypeException
Throws:
OpenShiftUnknonwSSHKeyTypeException

getByJSchKeyType

public static SSHKeyType getByJSchKeyType(int jschKeyType)
                                   throws OpenShiftUnknonwSSHKeyTypeException
Throws:
OpenShiftUnknonwSSHKeyTypeException

OpenShift Java Client 2.5.0.Final

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