com.maverick.ssh.components.jce
Class SshX509RsaPublicKey

java.lang.Object
  extended by com.maverick.ssh.components.jce.Ssh2RsaPublicKey
      extended by com.maverick.ssh.components.jce.SshX509RsaPublicKey
All Implemented Interfaces:
SshPublicKey, SshRsaPublicKey

public class SshX509RsaPublicKey
extends Ssh2RsaPublicKey

Basic implementation of X509 certificate support.

Author:
not attributable

Field Summary
static java.lang.String X509V3_SIGN_RSA
           
 
Constructor Summary
SshX509RsaPublicKey()
           
SshX509RsaPublicKey(java.security.cert.X509Certificate cert)
           
 
Method Summary
 java.lang.String getAlgorithm()
          Get the algorithm name for the public key.
 java.security.cert.X509Certificate getCertificate()
           
 byte[] getEncoded()
          Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key.
 void init(byte[] blob, int start, int len)
          Initialize the public key from a blob of binary data.
 
Methods inherited from class com.maverick.ssh.components.jce.Ssh2RsaPublicKey
doPublic, equals, getBitLength, getFingerprint, getModulus, getPublicExponent, getVersion, hashCode, verifySignature
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X509V3_SIGN_RSA

public static final java.lang.String X509V3_SIGN_RSA
See Also:
Constant Field Values
Constructor Detail

SshX509RsaPublicKey

public SshX509RsaPublicKey()

SshX509RsaPublicKey

public SshX509RsaPublicKey(java.security.cert.X509Certificate cert)
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Get the algorithm name for the public key.

Specified by:
getAlgorithm in interface SshPublicKey
Overrides:
getAlgorithm in class Ssh2RsaPublicKey
Returns:
the algorithm name, for example "ssh-dss"

getEncoded

public byte[] getEncoded()
                  throws SshException
Encode 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 interface SshPublicKey
Overrides:
getEncoded in class Ssh2RsaPublicKey
Returns:
an encoded byte array
Throws:
SshException

init

public void init(byte[] blob,
                 int start,
                 int len)
          throws SshException
Initialize the public key from a blob of binary data.

Specified by:
init in interface SshPublicKey
Overrides:
init in class Ssh2RsaPublicKey
Parameters:
blob - byte[]
start - int
len - int
Throws:
SshException

getCertificate

public java.security.cert.X509Certificate getCertificate()


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.