Package com.trilead.ssh2.signature
Class RSAKeyAlgorithm
- java.lang.Object
-
- com.trilead.ssh2.signature.KeyAlgorithm<RSAPublicKey,RSAPrivateKey>
-
- com.trilead.ssh2.signature.RSAKeyAlgorithm
-
public class RSAKeyAlgorithm extends KeyAlgorithm<RSAPublicKey,RSAPrivateKey>
- Author:
- Michael Clarke
-
-
Constructor Summary
Constructors Constructor Description RSAKeyAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RSAPublicKeydecodePublicKey(byte[] encodedPublicKey)byte[]decodeSignature(byte[] encodedSignature)byte[]encodePublicKey(RSAPublicKey publicKey)byte[]encodeSignature(byte[] signature)List<CertificateDecoder>getCertificateDecoders()-
Methods inherited from class com.trilead.ssh2.signature.KeyAlgorithm
generateSignature, getKeyFormat, supportsKey, verifySignature
-
-
-
-
Method Detail
-
encodeSignature
public byte[] encodeSignature(byte[] signature) throws IOException- Specified by:
encodeSignaturein classKeyAlgorithm<RSAPublicKey,RSAPrivateKey>- Throws:
IOException
-
decodeSignature
public byte[] decodeSignature(byte[] encodedSignature) throws IOException- Specified by:
decodeSignaturein classKeyAlgorithm<RSAPublicKey,RSAPrivateKey>- Throws:
IOException
-
encodePublicKey
public byte[] encodePublicKey(RSAPublicKey publicKey) throws IOException
- Specified by:
encodePublicKeyin classKeyAlgorithm<RSAPublicKey,RSAPrivateKey>- Throws:
IOException
-
decodePublicKey
public RSAPublicKey decodePublicKey(byte[] encodedPublicKey) throws IOException
- Specified by:
decodePublicKeyin classKeyAlgorithm<RSAPublicKey,RSAPrivateKey>- Throws:
IOException
-
getCertificateDecoders
public List<CertificateDecoder> getCertificateDecoders()
- Specified by:
getCertificateDecodersin classKeyAlgorithm<RSAPublicKey,RSAPrivateKey>
-
-