| 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.pubidRsaPub - 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.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-2018 The Apache Software Foundation. All Rights Reserved.