public class KeyTestUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DSA_G |
static String |
DSA_P |
static String |
DSA_Q |
static String |
DSA_X |
static String |
DSA_Y |
protected static char[] |
hexArray |
static String |
P_TYPE |
static String |
RSA_D |
static String |
RSA_E |
static String |
RSA_N |
static String |
RSA_P |
static String |
RSA_PE |
static String |
RSA_Q |
static String |
RSA_QE |
static String |
RSA_U |
static String |
TYPE_DSA |
static String |
TYPE_RSA |
Constructor and Description |
---|
KeyTestUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
bytesToHex(byte[] bytes) |
static byte[] |
dumpKeyBlob(PublicKey publicKey) |
static File |
getAuthorizedKeysFile() |
static InputStream |
getAuthorizedKeysStream() |
static KeyPair |
getKeyPairFromProperties(String parentName,
String keyName) |
static File |
getPrivateKeyAsFile(String parentName,
String keyName) |
static KeyPair |
getPrivateKeyAsKeyPair(String parentName,
String keyName,
String passphrase) |
static File |
getPublicKeyAsFile(String parentName,
String keyName) |
public static final String P_TYPE
public static final String TYPE_RSA
public static final String TYPE_DSA
public static final String DSA_P
public static final String DSA_Q
public static final String DSA_G
public static final String DSA_Y
public static final String DSA_X
public static final String RSA_N
public static final String RSA_E
public static final String RSA_D
public static final String RSA_P
public static final String RSA_Q
public static final String RSA_PE
public static final String RSA_QE
public static final String RSA_U
protected static final char[] hexArray
public static String bytesToHex(byte[] bytes)
public static InputStream getAuthorizedKeysStream()
public static File getAuthorizedKeysFile()
public static byte[] dumpKeyBlob(PublicKey publicKey)
public static KeyPair getKeyPairFromProperties(String parentName, String keyName)
public static KeyPair getPrivateKeyAsKeyPair(String parentName, String keyName, String passphrase)
Copyright © 2013-2017. All Rights Reserved.