public enum SSHKeyType extends Enum<SSHKeyType>
Modifier and Type | Method and Description |
---|---|
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.
|
public static final SSHKeyType SSH_RSA
public static final SSHKeyType SSH_DSA
public static SSHKeyType[] values()
for (SSHKeyType c : SSHKeyType.values()) System.out.println(c);
public static SSHKeyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getTypeId()
public int toJSchKeyType()
type
- the SSHKeyType that the JSch KeyPair constant will get
returned forpublic static SSHKeyType getByTypeId(String keyTypeId) throws OpenShiftUnknonwSSHKeyTypeException
public static SSHKeyType getByJSchKeyType(com.jcraft.jsch.KeyPair keyPair) throws OpenShiftUnknonwSSHKeyTypeException
public static SSHKeyType getByJSchKeyType(int jschKeyType) throws OpenShiftUnknonwSSHKeyTypeException
Copyright © 2016 JBoss by Red Hat. All rights reserved.