public class OpenSshEcdsaCertificate extends OpenSshCertificate implements SshPublicKey
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 |
|---|
OpenSshEcdsaCertificate(java.lang.String name,
java.security.interfaces.ECPublicKey pub,
java.lang.String curve) |
| 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.spec.ECParameterSpec |
getCurveParams(java.lang.String curve) |
java.security.PublicKey |
getJCEPublicKey()
Return the JCE component for this key.
|
int |
getPriority() |
byte[] |
getPublicOctet() |
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 OpenSshEcdsaCertificate(java.lang.String name,
java.security.interfaces.ECPublicKey pub,
java.lang.String curve)
throws java.io.IOException
java.io.IOExceptionpublic SecurityLevel getSecurityLevel()
getSecurityLevel in interface SecureComponentpublic int getPriority()
getPriority in interface SecureComponentprotected void decodePublicKey(com.sshtools.common.util.ByteArrayReader reader)
throws java.io.IOException,
SshException
decodePublicKey in class OpenSshCertificatejava.io.IOExceptionSshExceptionpublic java.lang.String getAlgorithm()
SshPublicKeygetAlgorithm in interface SshPublicKeygetAlgorithm in interface SecureComponentpublic int getBitLength()
SshPublicKeygetBitLength in interface SshPublicKeypublic byte[] getPublicOctet()
public 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 java.security.spec.ECParameterSpec getCurveParams(java.lang.String curve)
public java.security.PublicKey getJCEPublicKey()
SshPublicKeygetJCEPublicKey in interface SshPublicKeypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String getSigningAlgorithm()
SshPublicKeygetSigningAlgorithm in interface SshPublicKeypublic java.lang.String test()
SshPublicKeytest in interface SshPublicKeyCopyright © 2022. All rights reserved.