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.ByteSource supplier)
Returns
DSAPublicKeySpec which was OpenSSH Base64 Encoded id_rsa.pub |
static DSAPublicKeySpec |
publicKeySpecFromOpenSSH(String idDsaPub)
Executes
org.jclouds.crypto.Pems#publicKeySpecFromOpenSSH(com.google.common.io.InputSupplier) on the
string which was OpenSSH Base64 Encoded id_rsa.pub |
public static String encodeAsOpenSSH(DSAPublicKey key)
public static DSAPublicKeySpec publicKeySpecFromOpenSSH(String idDsaPub)
org.jclouds.crypto.Pems#publicKeySpecFromOpenSSH(com.google.common.io.InputSupplier)
on the
string which was OpenSSH Base64 Encoded id_rsa.pub
idRsaPub
- formatted ssh-dss AAAAB3NzaC1yc2EAAAADAQABAAAB...
org.jclouds.crypto.Pems#publicKeySpecFromOpenSSH(com.google.common.io.InputSupplier)
public static DSAPublicKeySpec publicKeySpecFromOpenSSH(com.google.common.io.ByteSource 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 format2b: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
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.