Package com.sshtools.common.ssh.x509
Class SshX509RsaPublicKey
java.lang.Object
com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
com.sshtools.common.ssh.x509.SshX509RsaPublicKey
- All Implemented Interfaces:
com.sshtools.common.ssh.components.Component
,com.sshtools.common.ssh.components.SshPublicKey
,com.sshtools.common.ssh.components.SshRsaPublicKey
,com.sshtools.common.ssh.components.SshX509PublicKey
,com.sshtools.common.ssh.SecureComponent
public class SshX509RsaPublicKey
extends com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
implements com.sshtools.common.ssh.components.SshX509PublicKey
Basic implementation of X509 certificate support.
- Author:
- not attributable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey.Ssh2RsaPublicKeyFactory
-
Field Summary
FieldsFields inherited from class com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
pubKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the algorithm name for the public key.byte[]
Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key.com.sshtools.common.ssh.components.SshPublicKey
init
(byte[] blob, int start, int len) Initialize the public key from a blob of binary data.Methods inherited from class com.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
doPublic, equals, getBitLength, getEncodingAlgorithm, getFingerprint, getJCEPublicKey, getModulus, getPriority, getPublicExponent, getSecurityLevel, getSignatureLength, getVersion, hashCode, test, verifySignature
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.sshtools.common.ssh.components.SshPublicKey
init, isCertificate
-
Field Details
-
X509V3_SIGN_RSA
- See Also:
-
-
Constructor Details
-
SshX509RsaPublicKey
public SshX509RsaPublicKey() -
SshX509RsaPublicKey
-
-
Method Details
-
getAlgorithm
Get the algorithm name for the public key.- Specified by:
getAlgorithm
in interfacecom.sshtools.common.ssh.SecureComponent
- Specified by:
getAlgorithm
in interfacecom.sshtools.common.ssh.components.SshPublicKey
- Overrides:
getAlgorithm
in classcom.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
- Returns:
- the algorithm name, for example "ssh-dss"
-
getSigningAlgorithm
- Specified by:
getSigningAlgorithm
in interfacecom.sshtools.common.ssh.components.SshPublicKey
- Overrides:
getSigningAlgorithm
in classcom.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
-
getEncoded
public byte[] getEncoded() throws com.sshtools.common.ssh.SshExceptionEncode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key.- Specified by:
getEncoded
in interfacecom.sshtools.common.ssh.components.SshPublicKey
- Overrides:
getEncoded
in classcom.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
- Returns:
- an encoded byte array
- Throws:
com.sshtools.common.ssh.SshException
-
init
public com.sshtools.common.ssh.components.SshPublicKey init(byte[] blob, int start, int len) throws com.sshtools.common.ssh.SshException Initialize the public key from a blob of binary data.- Specified by:
init
in interfacecom.sshtools.common.ssh.components.SshPublicKey
- Overrides:
init
in classcom.sshtools.common.ssh.components.jce.Ssh2RsaPublicKey
- Parameters:
blob
- byte[]start
- intlen
- int- Throws:
com.sshtools.common.ssh.SshException
-
getCertificate
- Specified by:
getCertificate
in interfacecom.sshtools.common.ssh.components.SshX509PublicKey
-
getCertificateChain
- Specified by:
getCertificateChain
in interfacecom.sshtools.common.ssh.components.SshX509PublicKey
-