com.openshift.client
Enum SSHKeyType
java.lang.Object
java.lang.Enum<SSHKeyType>
com.openshift.client.SSHKeyType
- All Implemented Interfaces:
- Serializable, Comparable<SSHKeyType>
public enum SSHKeyType
- extends Enum<SSHKeyType>
- Author:
- Andre Dietisheim
SSH_RSA
public static final SSHKeyType SSH_RSA
SSH_DSA
public static final SSHKeyType SSH_DSA
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
Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.