public class SshX509DsaPublicKey extends Ssh2DsaPublicKey
Modifier and Type | Field and Description |
---|---|
static String |
X509V3_SIGN_DSA |
pubkey
Constructor and Description |
---|
SshX509DsaPublicKey() |
SshX509DsaPublicKey(X509Certificate cert) |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Get the algorithm name for the public key.
|
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.
|
equals, getBitLength, getFingerprint, getG, getP, getQ, getY, hashCode, verifySignature
public static final String X509V3_SIGN_DSA
public SshX509DsaPublicKey()
public SshX509DsaPublicKey(X509Certificate cert)
public String getAlgorithm()
getAlgorithm
in interface SshPublicKey
getAlgorithm
in class Ssh2DsaPublicKey
public byte[] getEncoded() throws SshException
getEncoded
in interface SshPublicKey
getEncoded
in class Ssh2DsaPublicKey
SshException
public void init(byte[] blob, int start, int len) throws SshException
init
in interface SshPublicKey
init
in class Ssh2DsaPublicKey
blob
- byte[]start
- intlen
- intSshException
public X509Certificate getCertificate()
Copyright © 2014. All rights reserved.