public class DSAKeys extends Object
Methods in this class should be moved to the SshKeys class.
SshKeys| Constructor and Description |
|---|
DSAKeys() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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.pubidRsaPub - 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.pubsupplier - the input stream factory, formatted
ssh-dss AAAAB3NzaC1yc2EAAAADAQABAAAB...DSAPublicKeySpec which was OpenSSH Base64 Encoded
id_rsa.pubIOException - if an I/O error occurspublic static String fingerprintPublicKey(String publicKeyOpenSSH)
publicKeyOpenSSH - RSA public key in OpenSSH format2b:a9:62:95:5b:8b:1d:61:e0:92:f7:03:10:e9:db:d9public 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:d9Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.