com.maverick.ssh.components.jce
Class SshX509DsaPublicKey

java.lang.Object
  extended by com.maverick.ssh.components.jce.Ssh2DsaPublicKey
      extended by com.maverick.ssh.components.jce.SshX509DsaPublicKey
All Implemented Interfaces:
SshComponent, SshDsaPublicKey, SshPublicKey

public class SshX509DsaPublicKey
extends Ssh2DsaPublicKey

Basic implementation of X509 certificate support.

Author:
not attributable

Field Summary
static java.lang.String X509V3_SIGN_DSA
           
 
Fields inherited from class com.maverick.ssh.components.jce.Ssh2DsaPublicKey
pubkey
 
Constructor Summary
SshX509DsaPublicKey()
           
SshX509DsaPublicKey(java.security.cert.X509Certificate cert)
           
 
Method Summary
 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.
 java.lang.String getName()
          Get the algorithm name for the public 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.Ssh2DsaPublicKey
equals, getBitLength, getFingerprint, getG, getP, getQ, getY, hashCode, verifySignature
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

X509V3_SIGN_DSA

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

SshX509DsaPublicKey

public SshX509DsaPublicKey()

SshX509DsaPublicKey

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

getName

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

Specified by:
getName in interface SshComponent
Specified by:
getName in interface SshPublicKey
Overrides:
getName in class Ssh2DsaPublicKey
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 Ssh2DsaPublicKey
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 Ssh2DsaPublicKey
Parameters:
blob - byte[]
start - int
len - int
Throws:
SshException

getCertificate

public java.security.cert.X509Certificate getCertificate()


Copyright © 2012. All Rights Reserved.