|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maverick.crypto.publickey.RsaKey
com.maverick.crypto.publickey.RsaPublicKey
com.maverick.ssh.components.standalone.Ssh2RsaPublicKey
public class Ssh2RsaPublicKey
Represents an SSH2 RSA Public key.
| Field Summary |
|---|
| Fields inherited from class com.maverick.crypto.publickey.RsaPublicKey |
|---|
ASN_SHA1, publicExponent |
| Fields inherited from class com.maverick.crypto.publickey.RsaKey |
|---|
modulus |
| Constructor Summary | |
|---|---|
Ssh2RsaPublicKey()
Default constructor for initializing the key from a byte array using the init method. |
|
Ssh2RsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
Construct an RSA key from parameters. |
|
| Method Summary | |
|---|---|
java.math.BigInteger |
doPublic(java.math.BigInteger input)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAlgorithm()
Get the algorithm name for 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 |
int |
getVersion()
|
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 com.maverick.crypto.publickey.RsaPublicKey |
|---|
getPublicExponent, setPublicExponent |
| Methods inherited from class com.maverick.crypto.publickey.RsaKey |
|---|
getBitLength, getModulus, setModulus |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.maverick.ssh.components.SshRsaPublicKey |
|---|
getModulus, getPublicExponent |
| Methods inherited from interface com.maverick.ssh.components.SshPublicKey |
|---|
getBitLength |
| Constructor Detail |
|---|
public Ssh2RsaPublicKey()
public Ssh2RsaPublicKey(java.math.BigInteger modulus,
java.math.BigInteger exponent)
modulus - exponent - | Method Detail |
|---|
public byte[] getEncoded()
throws SshException
SshPublicKey
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
SshPublicKey
init in interface SshPublicKeySshExceptionpublic java.lang.String getAlgorithm()
SshPublicKey
getAlgorithm in interface SshPublicKey
public boolean verifySignature(byte[] signature,
byte[] data)
SshPublicKey
verifySignature in interface SshPublicKeyverifySignature in class com.maverick.crypto.publickey.RsaPublicKeytrue if the signature was produced by the corresponding
private key that owns this public key, otherwise false.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class com.maverick.crypto.publickey.RsaPublicKeypublic int getVersion()
getVersion in interface SshRsaPublicKeypublic java.math.BigInteger doPublic(java.math.BigInteger input)
doPublic in interface SshRsaPublicKey
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||