public class SshEd448PublicKeyJCE extends Object implements SshEd448PublicKey
| Modifier and Type | Field and Description |
|---|---|
static String |
ALGORITHM_NAME |
| Constructor and Description |
|---|
SshEd448PublicKeyJCE() |
SshEd448PublicKeyJCE(byte[] pk) |
SshEd448PublicKeyJCE(PublicKey pub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static byte[] |
extractRawPublicKeyFromX509(byte[] x509Bytes) |
byte[] |
getA() |
String |
getAlgorithm()
Get the algorithm name for the public key.
|
int |
getBitLength()
Get the bit length of the public key
|
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 |
getEncodingAlgorithm()
The algorithm name used in the encoding of the public key
|
String |
getFingerprint()
Return an SSH fingerprint of the public key
|
PublicKey |
getJCEPublicKey()
Get the JCE component of this key.
|
int |
getPriority() |
SecurityLevel |
getSecurityLevel() |
String |
getSigningAlgorithm()
The algorithm name expected to be encoded in SSH signatures
|
int |
hashCode() |
void |
init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
String |
test()
Test the JCE for algorithm availability.
|
boolean |
verifySignature(byte[] signature,
byte[] data)
Verify the signature.
|
public static final String ALGORITHM_NAME
public SshEd448PublicKeyJCE()
public SshEd448PublicKeyJCE(byte[] pk)
throws NoSuchAlgorithmException,
InvalidKeySpecException,
IOException,
NoSuchProviderException
public SshEd448PublicKeyJCE(PublicKey pub)
public SecurityLevel getSecurityLevel()
getSecurityLevel in interface SecureComponentpublic int getPriority()
getPriority in interface SecureComponentpublic void init(byte[] blob,
int start,
int len)
throws SshException
SshPublicKeyinit in interface SshPublicKeySshExceptionpublic String getAlgorithm()
SshPublicKeygetAlgorithm in interface SshPublicKeygetAlgorithm in interface SecureComponentpublic String getEncodingAlgorithm()
SshPublicKeygetEncodingAlgorithm in interface SshPublicKeypublic int getBitLength()
SshPublicKeygetBitLength in interface SshPublicKeypublic byte[] getEncoded()
throws SshException
SshPublicKeygetEncoded in interface SshPublicKeySshExceptionpublic byte[] getA()
getA in interface SshEd448PublicKeypublic static byte[] extractRawPublicKeyFromX509(byte[] x509Bytes)
throws IOException
IOExceptionpublic String getFingerprint() throws SshException
SshPublicKeygetFingerprint in interface SshPublicKeySshExceptionpublic boolean verifySignature(byte[] signature,
byte[] data)
throws SshException
SshPublicKeyverifySignature in interface SshPublicKeytrue if the signature was produced by the corresponding
private key that owns this public key, otherwise false.SshExceptionpublic String getSigningAlgorithm()
SshPublicKeygetSigningAlgorithm in interface SshPublicKeypublic String test()
SshPublicKeytest in interface SshPublicKeypublic PublicKey getJCEPublicKey()
SshPublicKeygetJCEPublicKey in interface SshPublicKeyCopyright © 2025. All rights reserved.