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) |
getJCESignature
public Ssh2EcdsaSha2NistPrivateKey(PrivateKey prv, String curve) throws IOException
IOException
public Ssh2EcdsaSha2NistPrivateKey(PrivateKey prv, String curve, Provider customProvider) throws IOException
IOException
public byte[] sign(byte[] data) throws IOException
SshPrivateKey
sign
in interface SshPrivateKey
IOException
public byte[] sign(byte[] data, String signingAlgorithm) throws IOException
sign
in interface SshPrivateKey
IOException
public String getAlgorithm()
getAlgorithm
in interface SshPrivateKey
public PrivateKey getJCEPrivateKey()
getJCEPrivateKey
in interface SshPrivateKey
getJCEPrivateKey
in class Ssh2BaseJCEPrivateKey
Copyright © 2024. All rights reserved.