public class Ssh2EcdsaSha2NistPrivateKey extends Ssh2BaseJCEPrivateKey implements SshPrivateKey
customProvider, prv| Constructor and Description |
|---|
Ssh2EcdsaSha2NistPrivateKey(PrivateKey prv,
String curve) |
Ssh2EcdsaSha2NistPrivateKey(PrivateKey prv,
String curve,
Provider customProvider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlgorithm() |
PrivateKey |
getJCEPrivateKey() |
int |
hashCode() |
byte[] |
sign(byte[] data)
Create a signature from the data.
|
byte[] |
sign(byte[] data,
String signingAlgorithm) |
getJCESignaturepublic Ssh2EcdsaSha2NistPrivateKey(PrivateKey prv, String curve) throws IOException
IOExceptionpublic Ssh2EcdsaSha2NistPrivateKey(PrivateKey prv, String curve, Provider customProvider) throws IOException
IOExceptionpublic byte[] sign(byte[] data)
throws IOException
SshPrivateKeysign in interface SshPrivateKeyIOExceptionpublic byte[] sign(byte[] data,
String signingAlgorithm)
throws IOException
sign in interface SshPrivateKeyIOExceptionpublic String getAlgorithm()
getAlgorithm in interface SshPrivateKeypublic PrivateKey getJCEPrivateKey()
getJCEPrivateKey in interface SshPrivateKeygetJCEPrivateKey in class Ssh2BaseJCEPrivateKeyCopyright © 2025. All rights reserved.