|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.maverick.ssh.components.jce.Ssh2DsaPublicKey
A DSA public key implementation which uses a JCE provider.
| Field Summary | |
protected java.security.interfaces.DSAPublicKey |
pubkey
|
| Constructor Summary | |
Ssh2DsaPublicKey()
|
|
Ssh2DsaPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
|
|
Ssh2DsaPublicKey(java.security.interfaces.DSAPublicKey pub)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAlgorithm()
Get the algorithm name for the public key. |
int |
getBitLength()
Get the bit length of the public key |
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 |
getFingerprint()
Return an SSH fingerprint of the public key |
java.math.BigInteger |
getG()
|
java.math.BigInteger |
getP()
|
java.math.BigInteger |
getQ()
|
java.math.BigInteger |
getY()
|
int |
hashCode()
|
void |
init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data. |
boolean |
verifySignature(byte[] signature,
byte[] data)
Verify the signature. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.security.interfaces.DSAPublicKey pubkey
| Constructor Detail |
public Ssh2DsaPublicKey()
public Ssh2DsaPublicKey(java.security.interfaces.DSAPublicKey pub)
public Ssh2DsaPublicKey(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger y)
throws java.security.NoSuchAlgorithmException,
java.security.spec.InvalidKeySpecException
| Method Detail |
public java.lang.String getAlgorithm()
getAlgorithm in interface SshPublicKeypublic int getBitLength()
SshPublicKey
getBitLength in interface SshPublicKey
public byte[] getEncoded()
throws SshException
getEncoded in interface SshPublicKeySshException
public java.lang.String getFingerprint()
throws SshException
SshPublicKey
getFingerprint in interface SshPublicKeySshException
public void init(byte[] blob,
int start,
int len)
throws SshException
init in interface SshPublicKeyblob - byte[]start - intlen - int
SshException
public boolean verifySignature(byte[] signature,
byte[] data)
throws SshException
verifySignature in interface SshPublicKeysignature - byte[]data - byte[]
true if the signature was produced by the
corresponding private key that owns this public key, otherwise
false.
SshExceptionpublic boolean equals(java.lang.Object obj)
public int hashCode()
public java.math.BigInteger getG()
getG in interface SshDsaPublicKeypublic java.math.BigInteger getP()
getP in interface SshDsaPublicKeypublic java.math.BigInteger getQ()
getQ in interface SshDsaPublicKeypublic java.math.BigInteger getY()
getY in interface SshDsaPublicKey
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||