net.adamcin.httpsig.testutil
Class KeyTestUtil

java.lang.Object
  extended by net.adamcin.httpsig.testutil.KeyTestUtil

public class KeyTestUtil
extends Object


Field Summary
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 Summary
KeyTestUtil()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_TYPE

public static final String P_TYPE
See Also:
Constant Field Values

TYPE_RSA

public static final String TYPE_RSA
See Also:
Constant Field Values

TYPE_DSA

public static final String TYPE_DSA
See Also:
Constant Field Values

DSA_P

public static final String DSA_P
See Also:
Constant Field Values

DSA_Q

public static final String DSA_Q
See Also:
Constant Field Values

DSA_G

public static final String DSA_G
See Also:
Constant Field Values

DSA_Y

public static final String DSA_Y
See Also:
Constant Field Values

DSA_X

public static final String DSA_X
See Also:
Constant Field Values

RSA_N

public static final String RSA_N
See Also:
Constant Field Values

RSA_E

public static final String RSA_E
See Also:
Constant Field Values

RSA_D

public static final String RSA_D
See Also:
Constant Field Values

RSA_P

public static final String RSA_P
See Also:
Constant Field Values

RSA_Q

public static final String RSA_Q
See Also:
Constant Field Values

RSA_PE

public static final String RSA_PE
See Also:
Constant Field Values

RSA_QE

public static final String RSA_QE
See Also:
Constant Field Values

RSA_U

public static final String RSA_U
See Also:
Constant Field Values

hexArray

protected static final char[] hexArray
Constructor Detail

KeyTestUtil

public KeyTestUtil()
Method Detail

bytesToHex

public static String bytesToHex(byte[] bytes)

getAuthorizedKeysStream

public static InputStream getAuthorizedKeysStream()

getAuthorizedKeysFile

public static File getAuthorizedKeysFile()

getPrivateKeyAsFile

public static File getPrivateKeyAsFile(String parentName,
                                       String keyName)

dumpKeyBlob

public static byte[] dumpKeyBlob(PublicKey publicKey)

getKeyPairFromProperties

public static KeyPair getKeyPairFromProperties(String parentName,
                                               String keyName)

getPrivateKeyAsKeyPair

public static KeyPair getPrivateKeyAsKeyPair(String parentName,
                                             String keyName,
                                             String passphrase)

getPublicKeyAsFile

public static File getPublicKeyAsFile(String parentName,
                                      String keyName)


Copyright © 2013-2014. All Rights Reserved.