com.maverick.ssh.components
Interface SshRsaPrivateKey

All Superinterfaces:
SshPrivateKey
All Known Subinterfaces:
SshRsaPrivateCrtKey
All Known Implementing Classes:
Ssh2RsaPrivateCrtKey, Ssh2RsaPrivateCrtKey, Ssh2RsaPrivateKey, Ssh2RsaPrivateKey

public interface SshRsaPrivateKey
extends SshPrivateKey

This interface should be implemented by all RSA private key implementations.

Author:
Lee David Painter

Method Summary
 java.math.BigInteger getModulus()
           
 java.math.BigInteger getPrivateExponent()
           
 byte[] sign(byte[] msg)
          Create a signature from the data.
 
Methods inherited from interface com.maverick.ssh.components.SshPrivateKey
getAlgorithm
 

Method Detail

getModulus

java.math.BigInteger getModulus()

getPrivateExponent

java.math.BigInteger getPrivateExponent()

sign

byte[] sign(byte[] msg)
            throws java.io.IOException
Description copied from interface: SshPrivateKey
Create a signature from the data.

Specified by:
sign in interface SshPrivateKey
Returns:
byte[]
Throws:
java.io.IOException


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.