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
All Methods Instance Methods Concrete Methods 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 Detail
-
decodePublicKey
public ECPublicKey decodePublicKey(byte[] key) throws IOException
- Specified by:
decodePublicKeyin classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
encodePublicKey
public byte[] encodePublicKey(ECPublicKey key) throws IOException
- Specified by:
encodePublicKeyin classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
decodeSignature
public byte[] decodeSignature(byte[] encodedSignature) throws IOException- Specified by:
decodeSignaturein classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
encodeSignature
public byte[] encodeSignature(byte[] sig) throws IOException- Specified by:
encodeSignaturein classKeyAlgorithm<ECPublicKey,ECPrivateKey>- Throws:
IOException
-
supportsKey
public boolean supportsKey(PrivateKey originalKey)
- Overrides:
supportsKeyin classKeyAlgorithm<ECPublicKey,ECPrivateKey>
-
-