| Modifier and Type | Class and Description |
|---|---|
static class |
ECDSAKeys.EllipticCurves |
| Modifier and Type | Field and Description |
|---|---|
static String |
ECDSA_SHA2_PREFIX |
| Constructor and Description |
|---|
ECDSAKeys() |
| Modifier and Type | Method and Description |
|---|---|
static ECPoint |
decodeECPoint(byte[] M,
EllipticCurve curve)
Decode an OctetString to EllipticCurvePoint according to SECG 2.3.4
|
static String |
encodeAsOpenSSH(ECPublicKey key) |
static byte[] |
encodeECPoint(ECPoint group,
EllipticCurve curve)
Encode EllipticCurvePoint to an OctetString
|
static String |
fingerprint(ECPublicKey publicKey)
Create a fingerprint per the following spec
|
static String |
fingerprintPublicKey(String publicKeyOpenSSH) |
static ECPublicKeySpec |
publicKeySpecFromOpenSSH(com.google.common.io.ByteSource supplier)
Returns
DSAPublicKeySpec which was OpenSSH Base64 Encoded id_rsa.pub |
static ECPublicKeySpec |
publicKeySpecFromOpenSSH(String ecDsaPub)
Executes
org.jclouds.crypto.Pems#publicKeySpecFromOpenSSH(com.google.common.io.InputSupplier) on the
string which was OpenSSH Base64 Encoded id_rsa.pub |
public static final String ECDSA_SHA2_PREFIX
public static String encodeAsOpenSSH(ECPublicKey key)
public static ECPublicKeySpec publicKeySpecFromOpenSSH(String ecDsaPub)
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 ECPublicKeySpec 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) throws IOException
publicKeyOpenSSH - RSA public key in OpenSSH format2b:a9:62:95:5b:8b:1d:61:e0:92:f7:03:10:e9:db:d9IOExceptionpublic static String fingerprint(ECPublicKey publicKey)
2b:a9:62:95:5b:8b:1d:61:e0:92:f7:03:10:e9:db:d9public static byte[] encodeECPoint(ECPoint group, EllipticCurve curve)
public static ECPoint decodeECPoint(byte[] M, EllipticCurve curve)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.