public class SshX509RsaPublicKey
extends com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
implements com.sshtools.common.ssh.components.SshX509PublicKey
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
X509V3_SIGN_RSA |
Constructor and Description |
---|
SshX509RsaPublicKey() |
SshX509RsaPublicKey(java.security.cert.Certificate cert) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Get the algorithm name for the public key.
|
java.security.cert.Certificate |
getCertificate() |
java.security.cert.Certificate[] |
getCertificateChain() |
byte[] |
getEncoded()
Encode the public key into a blob of binary data, the encoded result
will be passed into init to recreate the key.
|
java.lang.String |
getSigningAlgorithm() |
void |
init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data.
|
doPublic, equals, getBitLength, getEncodingAlgorithm, getFingerprint, getJCEPublicKey, getModulus, getPriority, getPublicExponent, getSecurityLevel, getSignatureLength, getVersion, hashCode, test, verifySignature
public static final java.lang.String X509V3_SIGN_RSA
public SshX509RsaPublicKey()
public SshX509RsaPublicKey(java.security.cert.Certificate cert)
public java.lang.String getAlgorithm()
getAlgorithm
in interface com.sshtools.common.ssh.components.SshPublicKey
getAlgorithm
in interface com.sshtools.common.ssh.SecureComponent
getAlgorithm
in class com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
public java.lang.String getSigningAlgorithm()
getSigningAlgorithm
in interface com.sshtools.common.ssh.components.SshPublicKey
getSigningAlgorithm
in class com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
public byte[] getEncoded() throws com.sshtools.common.ssh.SshException
getEncoded
in interface com.sshtools.common.ssh.components.SshPublicKey
getEncoded
in class com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
com.sshtools.common.ssh.SshException
public void init(byte[] blob, int start, int len) throws com.sshtools.common.ssh.SshException
init
in interface com.sshtools.common.ssh.components.SshPublicKey
init
in class com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
blob
- byte[]start
- intlen
- intcom.sshtools.common.ssh.SshException
public java.security.cert.Certificate getCertificate()
getCertificate
in interface com.sshtools.common.ssh.components.SshX509PublicKey
public java.security.cert.Certificate[] getCertificateChain()
getCertificateChain
in interface com.sshtools.common.ssh.components.SshX509PublicKey
Copyright © 2023. All rights reserved.