Interface SshPrivateKey
- All Known Subinterfaces:
SshDsaPrivateKey,SshEd25519PrivateKey,SshEd448PrivateKey,SshRsaPrivateCrtKey,SshRsaPrivateKey
- All Known Implementing Classes:
Ssh2BaseDsaPrivateKey,Ssh2BaseJCEPrivateKey,Ssh2BaseRsaPrivateKey,Ssh2DsaPrivateKey,Ssh2EcdsaSha2NistPrivateKey,Ssh2RsaPrivateCrtKey,Ssh2RsaPrivateKey,SshEd25519PrivateKeyJCE,SshEd448PrivateKeyJCE
public interface SshPrivateKey
Interface for SSH supported private keys.
- Author:
- Lee David Painter
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]sign(byte[] data) Create a signature from the data.byte[]
-
Method Details
-
sign
Create a signature from the data.- Parameters:
data-- Returns:
- byte[]
- Throws:
SshExceptionIOException
-
sign
- Throws:
IOException
-
getAlgorithm
String getAlgorithm() -
getJCEPrivateKey
PrivateKey getJCEPrivateKey()
-