|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.digitalocean.ssh.DSAKeys
public class DSAKeys
Utility methods to work with DSA SSH keys.
Methods in this class should be moved to the SshKeys class.
SshKeys| Constructor Summary | |
|---|---|
DSAKeys()
|
|
| Method Summary | |
|---|---|
static String |
encodeAsOpenSSH(DSAPublicKey key)
|
static String |
fingerprint(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y)
Create a fingerprint per the following spec |
static String |
fingerprintPublicKey(String publicKeyOpenSSH)
|
static DSAPublicKeySpec |
publicKeySpecFromOpenSSH(com.google.common.io.InputSupplier<? extends InputStream> supplier)
Returns DSAPublicKeySpec which was OpenSSH Base64 Encoded
id_rsa.pub |
static DSAPublicKeySpec |
publicKeySpecFromOpenSSH(String idDsaPub)
Executes Pems#publicKeySpecFromOpenSSH(InputSupplier) on the
string which was OpenSSH Base64 Encoded id_rsa.pub |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DSAKeys()
| Method Detail |
|---|
public static String encodeAsOpenSSH(DSAPublicKey key)
public static DSAPublicKeySpec publicKeySpecFromOpenSSH(String idDsaPub)
Pems#publicKeySpecFromOpenSSH(InputSupplier) on the
string which was OpenSSH Base64 Encoded id_rsa.pub
idRsaPub - formatted ssh-dss AAAAB3NzaC1yc2EAAAADAQABAAAB...Pems#publicKeySpecFromOpenSSH(InputSupplier)
public static DSAPublicKeySpec publicKeySpecFromOpenSSH(com.google.common.io.InputSupplier<? extends InputStream> supplier)
throws IOException
DSAPublicKeySpec which was OpenSSH Base64 Encoded
id_rsa.pub
supplier - the input stream factory, formatted
ssh-dss AAAAB3NzaC1yc2EAAAADAQABAAAB...
DSAPublicKeySpec which was OpenSSH Base64 Encoded
id_rsa.pub
IOException - if an I/O error occurspublic static String fingerprintPublicKey(String publicKeyOpenSSH)
publicKeyOpenSSH - RSA public key in OpenSSH format
2b:a9:62:95:5b:8b:1d:61:e0:92:f7:03:10:e9:db:d9
public static String fingerprint(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y)
2b:a9:62:95:5b:8b:1d:61:e0:92:f7:03:10:e9:db:d9
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||