Package com.trilead.ssh2.signature
Class ECDSAKeyAlgorithm
java.lang.Object
com.trilead.ssh2.signature.KeyAlgorithm<ECPublicKey,ECPrivateKey>
com.trilead.ssh2.signature.ECDSAKeyAlgorithm
- Direct Known Subclasses:
ECDSAKeyAlgorithm.ECDSASha2Nistp256
,ECDSAKeyAlgorithm.ECDSASha2Nistp384
,ECDSAKeyAlgorithm.ECDSASha2Nistp521
- Author:
- Michael Clarke
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic ECPoint
decodePoint
(byte[] encodedPoint, EllipticCurve curve) decodePublicKey
(byte[] key) byte[]
decodeSignature
(byte[] encodedSignature) static byte[]
encodePoint
(ECPoint group, EllipticCurve curve) byte[]
byte[]
encodeSignature
(byte[] sig) abstract String
static String
static ECDSAKeyAlgorithm
getVerifierForKey
(ECKey key) boolean
supportsKey
(PrivateKey originalKey) Methods inherited from class com.trilead.ssh2.signature.KeyAlgorithm
generateSignature, getCertificateDecoders, getKeyFormat, verifySignature
-
Method Details
-
getEcParameterSpec
-
decodePublicKey
- Specified by:
decodePublicKey
in classKeyAlgorithm<ECPublicKey,
ECPrivateKey> - Throws:
IOException
-
encodePublicKey
- Specified by:
encodePublicKey
in classKeyAlgorithm<ECPublicKey,
ECPrivateKey> - Throws:
IOException
-
decodeSignature
- Specified by:
decodeSignature
in classKeyAlgorithm<ECPublicKey,
ECPrivateKey> - Throws:
IOException
-
encodeSignature
- Specified by:
encodeSignature
in classKeyAlgorithm<ECPublicKey,
ECPrivateKey> - Throws:
IOException
-
supportsKey
- Overrides:
supportsKey
in classKeyAlgorithm<ECPublicKey,
ECPrivateKey>
-
decodePoint
-
encodePoint
-
getDigestAlgorithmForParams
-
getVerifierForKey
-
getDigestAlgorithm
-