Package com.trilead.ssh2.signature
Class KeyAlgorithm<U extends PublicKey,R extends PrivateKey>
java.lang.Object
com.trilead.ssh2.signature.KeyAlgorithm<U,R>
- Direct Known Subclasses:
DSAKeyAlgorithm,ECDSAKeyAlgorithm,ED25519KeyAlgorithm,RSAKeyAlgorithm
- Author:
- Michael Clarke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PublicKeydecodePublicKey(byte[] encodedPublicKey) abstract byte[]decodeSignature(byte[] encodedSignature) abstract byte[]encodePublicKey(U publicKey) abstract byte[]encodeSignature(byte[] signature) byte[]generateSignature(byte[] message, R pk, SecureRandom rnd) abstract List<CertificateDecoder> booleansupportsKey(PrivateKey key) booleanverifySignature(byte[] message, byte[] ds, U dpk)
-
Constructor Details
-
KeyAlgorithm
-
KeyAlgorithm
-
-
Method Details
-
generateSignature
- Throws:
IOException
-
verifySignature
- Throws:
IOException
-
getKeyFormat
-
encodeSignature
- Throws:
IOException
-
decodeSignature
- Throws:
IOException
-
encodePublicKey
- Throws:
IOException
-
decodePublicKey
- Throws:
IOException
-
getCertificateDecoders
-
supportsKey
-