|
||||||||||
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.SSH2DSS
Implements "ssh-dss" 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 | |
SSH2DSS()
Constructor. |
Method Summary | |
PublicKey |
decodePublicKey(byte[] pubKeyBlob)
Decode a public key blob. |
byte[] |
encodePublicKey(PublicKey publicKey)
Encode the given public key into a public key blob. |
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 SSH2DSS()
Method Detail |
public byte[] encodePublicKey(PublicKey publicKey) throws SSH2Exception
SSH2Signature
encodePublicKey
in class SSH2Signature
publicKey
- The public key to encode. Must be an instance of
DSAPublicKey
.
SSH2Exception
public PublicKey decodePublicKey(byte[] pubKeyBlob) throws SSH2Exception
SSH2Signature
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 |