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
public abstract class ECDSAKeyAlgorithm extends KeyAlgorithm<ECPublicKey,ECPrivateKey>
- Author:
- Michael Clarke
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classECDSAKeyAlgorithm.ECDSASha2Nistp256static classECDSAKeyAlgorithm.ECDSASha2Nistp384static classECDSAKeyAlgorithm.ECDSASha2Nistp521 -
Method Summary
Modifier and Type Method Description ECPublicKeydecodePublicKey(byte[] key)byte[]decodeSignature(byte[] encodedSignature)byte[]encodePublicKey(ECPublicKey key)byte[]encodeSignature(byte[] sig)booleansupportsKey(PrivateKey originalKey)Methods inherited from class com.trilead.ssh2.signature.KeyAlgorithm
generateSignature, getCertificateDecoders, getKeyFormat, verifySignature
-
Method Details
-
decodePublicKey
- Specified by:
decodePublicKeyin classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
encodePublicKey
- Specified by:
encodePublicKeyin classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
decodeSignature
- Specified by:
decodeSignaturein classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
encodeSignature
- Specified by:
encodeSignaturein classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
supportsKey
- Overrides:
supportsKeyin classKeyAlgorithm<ECPublicKey,ECPrivateKey>
-