net.adamcin.httpsig.testutil
Class KeyTestUtil
java.lang.Object
net.adamcin.httpsig.testutil.KeyTestUtil
public class KeyTestUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
KeyTestUtil
public KeyTestUtil()
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.