public class OpenSshEd25519Certificate extends OpenSshCertificate implements SshPublicKey
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CERT_TYPE |
OPTION_FORCE_COMMAND, OPTION_SOURCE_ADDRESS, PERMIT_AGENT_FORWARDING, PERMIT_PORT_FORWARDING, PERMIT_USER_PTY, PERMIT_USER_RC, PERMIT_X11_FORWARDING, publicKey, SSH_CERT_TYPE_HOST, SSH_CERT_TYPE_USER| Constructor and Description |
|---|
OpenSshEd25519Certificate() |
OpenSshEd25519Certificate(byte[] pk) |
OpenSshEd25519Certificate(java.security.PublicKey pub) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decodePublicKey(com.sshtools.common.util.ByteArrayReader reader) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlgorithm()
Get the algorithm name for the public key.
|
int |
getBitLength()
Get the bit length of the public key
|
java.security.PublicKey |
getJCEPublicKey()
Return the JCE component for this key.
|
int |
getPriority() |
SecurityLevel |
getSecurityLevel() |
java.lang.String |
getSigningAlgorithm()
The algorithm name expected to be encoded in SSH signatures
|
int |
hashCode() |
java.lang.String |
test()
Test the JCE for algorithm availability.
|
boolean |
verifySignature(byte[] signature,
byte[] data)
Verify the signature.
|
decodeCertificate, encodeCertificate, getCriticalOptions, getCriticalOptionsList, getEncoded, getEncodingAlgorithm, getExtension, getExtensions, getExtensionsList, getExtensionsMap, getFingerprint, getForcedCommand, getKeyId, getPrincipals, getSerial, getSignedBy, getSignedKey, getSourceAddresses, getType, getValidAfter, getValidBefore, init, isForceCommand, isHostCertificate, isUserCertificate, signclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEncoded, getEncodingAlgorithm, getFingerprint, init, isCertificatepublic static final java.lang.String CERT_TYPE
public OpenSshEd25519Certificate()
public OpenSshEd25519Certificate(java.security.PublicKey pub)
public OpenSshEd25519Certificate(byte[] pk)
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException,
java.io.IOException,
java.security.NoSuchProviderException
java.security.NoSuchAlgorithmExceptionjava.security.spec.InvalidKeySpecExceptionjava.io.IOExceptionjava.security.NoSuchProviderExceptionpublic java.security.PublicKey getJCEPublicKey()
SshPublicKeygetJCEPublicKey in interface SshPublicKeypublic SecurityLevel getSecurityLevel()
getSecurityLevel in interface SecureComponentpublic int getPriority()
getPriority in interface SecureComponentpublic java.lang.String getAlgorithm()
getAlgorithm in interface SshPublicKeygetAlgorithm in interface SecureComponentpublic int getBitLength()
SshPublicKeygetBitLength in interface SshPublicKeyprotected void decodePublicKey(com.sshtools.common.util.ByteArrayReader reader)
throws java.io.IOException,
SshException
decodePublicKey in class OpenSshCertificatejava.io.IOExceptionSshExceptionpublic boolean verifySignature(byte[] signature,
byte[] data)
throws SshException
verifySignature in interface SshPublicKeysignature - byte[]data - byte[]true if the signature was produced by the
corresponding private key that owns this public key, otherwise
false.SshExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String test()
SshPublicKeytest in interface SshPublicKeypublic java.lang.String getSigningAlgorithm()
SshPublicKeygetSigningAlgorithm in interface SshPublicKeyCopyright © 2022. All rights reserved.