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