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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract U
decodePublicKey
(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> boolean
supportsKey
(PrivateKey key) boolean
verifySignature
(byte[] message, byte[] ds, U dpk)
-
Field Details
-
signatureAlgorithm
-
keyFormat
-
keyType
-
provider
-
-
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
-