Package com.trilead.ssh2.signature
Class RSAKeyAlgorithm
- java.lang.Object
-
- com.trilead.ssh2.signature.KeyAlgorithm<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
-
- com.trilead.ssh2.signature.RSAKeyAlgorithm
-
public class RSAKeyAlgorithm extends KeyAlgorithm<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
- Author:
- Michael Clarke
-
-
Constructor Summary
Constructors Constructor Description RSAKeyAlgorithm()RSAKeyAlgorithm(java.lang.String signatureAlgorithm, java.lang.String keyFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.interfaces.RSAPublicKeydecodePublicKey(byte[] encodedPublicKey)byte[]decodeSignature(byte[] encodedSignature)byte[]encodePublicKey(java.security.interfaces.RSAPublicKey publicKey)byte[]encodeSignature(byte[] signature)java.util.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 java.io.IOException- Specified by:
encodeSignaturein classKeyAlgorithm<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>- Throws:
java.io.IOException
-
decodeSignature
public byte[] decodeSignature(byte[] encodedSignature) throws java.io.IOException- Specified by:
decodeSignaturein classKeyAlgorithm<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>- Throws:
java.io.IOException
-
encodePublicKey
public byte[] encodePublicKey(java.security.interfaces.RSAPublicKey publicKey) throws java.io.IOException- Specified by:
encodePublicKeyin classKeyAlgorithm<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>- Throws:
java.io.IOException
-
decodePublicKey
public java.security.interfaces.RSAPublicKey decodePublicKey(byte[] encodedPublicKey) throws java.io.IOException- Specified by:
decodePublicKeyin classKeyAlgorithm<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>- Throws:
java.io.IOException
-
getCertificateDecoders
public java.util.List<CertificateDecoder> getCertificateDecoders()
- Specified by:
getCertificateDecodersin classKeyAlgorithm<java.security.interfaces.RSAPublicKey,java.security.interfaces.RSAPrivateKey>
-
-