|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.ssh2.SSH2Signature
com.mindbright.ssh2.SSH2SimpleSignature
com.mindbright.ssh2.SSH2RSA
Implements "ssh-rsa" signatures according to the ssh standard.
Field Summary | |
static java.lang.String |
SSH2_KEY_FORMAT
|
Fields inherited from class com.mindbright.ssh2.SSH2SimpleSignature |
draftIncompatibleSignature, signatureAlgorithm, ssh2KeyFormat |
Fields inherited from class com.mindbright.ssh2.SSH2Signature |
algorithm, privateKey, pubKeyBlob, publicKey, signature |
Constructor Summary | |
SSH2RSA()
|
Method Summary | |
PublicKey |
decodePublicKey(byte[] pubKeyBlob)
Decode a public key encoded according to the ssh standard. |
byte[] |
encodePublicKey(PublicKey publicKey)
Encode the given public key according to the ssh standard. |
Methods inherited from class com.mindbright.ssh2.SSH2SimpleSignature |
decodeSignature, encodeSignature, getKeyFormat, getSignatureAlgorithm, getVerifyInstance, setIncompatibility |
Methods inherited from class com.mindbright.ssh2.SSH2Signature |
clearSensitiveData, getAlgorithmName, getEncodingInstance, getInstance, getPublicKey, getPublicKeyBlob, initSign, initVerify, initVerify, setPublicKey, sign, verify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String SSH2_KEY_FORMAT
Constructor Detail |
public SSH2RSA()
Method Detail |
public byte[] encodePublicKey(PublicKey publicKey) throws SSH2Exception
encodePublicKey
in class SSH2Signature
publicKey
- The public key to encode. Must be an instance of
RSAPublicKey
.
SSH2Exception
public PublicKey decodePublicKey(byte[] pubKeyBlob) throws SSH2Exception
decodePublicKey
in class SSH2Signature
pubKeyBlob
- A byte array containing a public key blob.
Publickey
instance.
SSH2Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |