public class OpenSshDsaCertificate extends OpenSshCertificate implements SshDsaPublicKey
| Modifier and Type | Field and Description |
|---|---|
static String |
SSH_DSS_CERT_V01 |
OPTION_FORCE_COMMAND, OPTION_SOURCE_ADDRESS, PERMIT_AGENT_FORWARDING, PERMIT_PORT_FORWARDING, PERMIT_USER_PTY, PERMIT_USER_RC, PERMIT_X11_FORWARDING, SSH_CERT_TYPE_HOST, SSH_CERT_TYPE_USER| Constructor and Description |
|---|
OpenSshDsaCertificate() |
OpenSshDsaCertificate(BigInteger p,
BigInteger q,
BigInteger g,
BigInteger y) |
OpenSshDsaCertificate(DSAPublicKey pub) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decodePublicKey(ByteArrayReader reader) |
boolean |
equals(Object obj) |
String |
getAlgorithm()
Get the algorithm name for the public key.
|
int |
getBitLength()
Get the bit length of the public key
|
BigInteger |
getG() |
DSAPublicKey |
getJCEPublicKey()
Get the JCE component of this key.
|
BigInteger |
getP() |
int |
getPriority() |
BigInteger |
getQ() |
SecurityLevel |
getSecurityLevel() |
String |
getSigningAlgorithm()
The algorithm name expected to be encoded in SSH signatures
|
BigInteger |
getY() |
int |
hashCode() |
static void |
main(String[] args) |
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, init, isForceCommand, isHostCertificate, isUserCertificate, sign, verifyclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEncoded, getEncodingAlgorithm, getFingerprint, initpublic static final String SSH_DSS_CERT_V01
public OpenSshDsaCertificate()
public OpenSshDsaCertificate(DSAPublicKey pub)
public OpenSshDsaCertificate(BigInteger p, BigInteger q, BigInteger g, BigInteger y) throws NoSuchAlgorithmException, InvalidKeySpecException
public SecurityLevel getSecurityLevel()
getSecurityLevel in interface SecureComponentpublic int getPriority()
getPriority in interface SecureComponentpublic String getAlgorithm()
getAlgorithm in interface SshPublicKeygetAlgorithm in interface SecureComponentprotected void decodePublicKey(ByteArrayReader reader) throws IOException, SshException
decodePublicKey in class OpenSshCertificateIOExceptionSshExceptionpublic 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 BigInteger getG()
getG in interface SshDsaPublicKeypublic BigInteger getP()
getP in interface SshDsaPublicKeypublic BigInteger getQ()
getQ in interface SshDsaPublicKeypublic BigInteger getY()
getY in interface SshDsaPublicKeypublic String test()
SshPublicKeytest in interface SshPublicKeypublic String getSigningAlgorithm()
SshPublicKeygetSigningAlgorithm in interface SshPublicKeygetSigningAlgorithm in class OpenSshCertificatepublic int getBitLength()
SshPublicKeygetBitLength in interface SshPublicKeypublic DSAPublicKey getJCEPublicKey()
SshPublicKeygetJCEPublicKey in interface SshDsaPublicKeygetJCEPublicKey in interface SshPublicKeyCopyright © 2025. All rights reserved.