|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.maverick.ssh.components.jce.Ssh2EcdsaSha2NistPublicKey
public class Ssh2EcdsaSha2NistPublicKey
| Constructor Summary | |
|---|---|
Ssh2EcdsaSha2NistPublicKey(ECPublicKey pub)
|
|
| Method Summary | |
|---|---|
static ECPoint |
fromByteArray(byte[] b,
EllipticCurve curve)
|
int |
getBitLength()
Get the bit length of the public key |
ECParameterSpec |
getCurveParams(String curve)
|
byte[] |
getEncoded()
Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key. |
String |
getFingerprint()
Return an SSH fingerprint of the public key |
PublicKey |
getJCEPublicKey()
|
String |
getName()
Get the algorithm name for the public key. |
void |
init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data. |
static byte[] |
toByteArray(ECPoint e,
EllipticCurve curve)
|
boolean |
verifySignature(byte[] signature,
byte[] data)
Verify the signature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ssh2EcdsaSha2NistPublicKey(ECPublicKey pub)
throws IOException
IOException| Method Detail |
|---|
public void init(byte[] blob,
int start,
int len)
throws SshException
SshPublicKey
init in interface SshPublicKeySshExceptionpublic String getName()
SshPublicKey
getName in interface SshComponentgetName in interface SshPublicKeypublic int getBitLength()
SshPublicKey
getBitLength in interface SshPublicKey
public byte[] getEncoded()
throws SshException
SshPublicKey
getEncoded in interface SshPublicKeySshException
public String getFingerprint()
throws SshException
SshPublicKey
getFingerprint in interface SshPublicKeySshException
public boolean verifySignature(byte[] signature,
byte[] data)
throws SshException
SshPublicKey
verifySignature in interface SshPublicKeytrue if the signature was produced by the corresponding
private key that owns this public key, otherwise false.
SshExceptionpublic ECParameterSpec getCurveParams(String curve)
public static byte[] toByteArray(ECPoint e,
EllipticCurve curve)
public static ECPoint fromByteArray(byte[] b,
EllipticCurve curve)
public PublicKey getJCEPublicKey()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||