Package com.trilead.ssh2.signature
Class DSAKeyAlgorithm
- java.lang.Object
-
- com.trilead.ssh2.signature.KeyAlgorithm<java.security.interfaces.DSAPublicKey,java.security.interfaces.DSAPrivateKey>
-
- com.trilead.ssh2.signature.DSAKeyAlgorithm
-
public class DSAKeyAlgorithm extends KeyAlgorithm<java.security.interfaces.DSAPublicKey,java.security.interfaces.DSAPrivateKey>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DSAKeyAlgorithm.DsaCertificateDecoder
-
Constructor Summary
Constructors Constructor Description DSAKeyAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.interfaces.DSAPublicKey
decodePublicKey(byte[] encodedPublicKey)
byte[]
decodeSignature(byte[] encodedSignature)
byte[]
encodePublicKey(java.security.interfaces.DSAPublicKey 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:
encodeSignature
in classKeyAlgorithm<java.security.interfaces.DSAPublicKey,java.security.interfaces.DSAPrivateKey>
- Throws:
java.io.IOException
-
decodeSignature
public byte[] decodeSignature(byte[] encodedSignature) throws java.io.IOException
- Specified by:
decodeSignature
in classKeyAlgorithm<java.security.interfaces.DSAPublicKey,java.security.interfaces.DSAPrivateKey>
- Throws:
java.io.IOException
-
encodePublicKey
public byte[] encodePublicKey(java.security.interfaces.DSAPublicKey publicKey) throws java.io.IOException
- Specified by:
encodePublicKey
in classKeyAlgorithm<java.security.interfaces.DSAPublicKey,java.security.interfaces.DSAPrivateKey>
- Throws:
java.io.IOException
-
decodePublicKey
public java.security.interfaces.DSAPublicKey decodePublicKey(byte[] encodedPublicKey) throws java.io.IOException
- Specified by:
decodePublicKey
in classKeyAlgorithm<java.security.interfaces.DSAPublicKey,java.security.interfaces.DSAPrivateKey>
- Throws:
java.io.IOException
-
getCertificateDecoders
public java.util.List<CertificateDecoder> getCertificateDecoders()
- Specified by:
getCertificateDecoders
in classKeyAlgorithm<java.security.interfaces.DSAPublicKey,java.security.interfaces.DSAPrivateKey>
-
-