com.mindbright.ssh2
Class SSH2SimpleSignature

java.lang.Object
  |
  +--com.mindbright.ssh2.SSH2Signature
        |
        +--com.mindbright.ssh2.SSH2SimpleSignature
All Implemented Interfaces:
SSH2PKISigner
Direct Known Subclasses:
SSH2DSS, SSH2RSA

public abstract class SSH2SimpleSignature
extends SSH2Signature


Field Summary
protected  boolean draftIncompatibleSignature
           
protected  java.lang.String signatureAlgorithm
           
protected  java.lang.String ssh2KeyFormat
           
 
Fields inherited from class com.mindbright.ssh2.SSH2Signature
algorithm, privateKey, pubKeyBlob, publicKey, signature
 
Constructor Summary
protected SSH2SimpleSignature(java.lang.String signatureAlgorithm, java.lang.String ssh2KeyFormat)
           
 
Method Summary
 byte[] decodeSignature(byte[] sigBlob)
           
 byte[] encodeSignature(byte[] sigRaw)
           
static java.lang.String getKeyFormat(byte[] pubKeyBlob)
           
 java.lang.String getSignatureAlgorithm()
           
static SSH2Signature getVerifyInstance(byte[] pubKeyBlob)
           
 void setIncompatibility(SSH2Transport transport)
           
 
Methods inherited from class com.mindbright.ssh2.SSH2Signature
decodePublicKey, encodePublicKey, 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

signatureAlgorithm

protected java.lang.String signatureAlgorithm

ssh2KeyFormat

protected java.lang.String ssh2KeyFormat

draftIncompatibleSignature

protected boolean draftIncompatibleSignature
Constructor Detail

SSH2SimpleSignature

protected SSH2SimpleSignature(java.lang.String signatureAlgorithm,
                              java.lang.String ssh2KeyFormat)
Method Detail

getVerifyInstance

public static SSH2Signature getVerifyInstance(byte[] pubKeyBlob)
                                       throws SSH2Exception
SSH2Exception

getSignatureAlgorithm

public final java.lang.String getSignatureAlgorithm()
Specified by:
getSignatureAlgorithm in class SSH2Signature

encodeSignature

public byte[] encodeSignature(byte[] sigRaw)
Specified by:
encodeSignature in class SSH2Signature

decodeSignature

public byte[] decodeSignature(byte[] sigBlob)
                       throws SSH2SignatureException
Specified by:
decodeSignature in class SSH2Signature
SSH2SignatureException

getKeyFormat

public static java.lang.String getKeyFormat(byte[] pubKeyBlob)

setIncompatibility

public void setIncompatibility(SSH2Transport transport)
Specified by:
setIncompatibility in interface SSH2PKISigner
Overrides:
setIncompatibility in class SSH2Signature