com.mindbright.security.publickey
Class RSAWithAny

java.lang.Object
  extended by com.mindbright.jca.security.SignatureSpi
      extended by com.mindbright.security.publickey.BaseSignature
          extended by com.mindbright.security.publickey.RSAWithAny
Direct Known Subclasses:
RSAWithMD2, RSAWithMD5, RSAWithRIPEMD160, RSAWithSHA1

public abstract class RSAWithAny
extends BaseSignature


Field Summary
 
Fields inherited from class com.mindbright.security.publickey.BaseSignature
digest, privateKey, publicKey
 
Fields inherited from class com.mindbright.jca.security.SignatureSpi
appRandom
 
Constructor Summary
protected RSAWithAny(java.lang.String digAlg)
           
 
Method Summary
protected  void initSign()
           
protected  void initVerify()
           
protected  byte[] sign(byte[] data)
           
protected  boolean verify(byte[] signature, byte[] data)
           
 
Methods inherited from class com.mindbright.security.publickey.BaseSignature
clone, engineGetParameter, engineInitSign, engineInitSign, engineInitVerify, engineSetParameter, engineSetParameter, engineSign, engineSign, engineUpdate, engineUpdate, engineVerify, getRandom
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAWithAny

protected RSAWithAny(java.lang.String digAlg)
Method Detail

initVerify

protected void initVerify()
                   throws InvalidKeyException
Specified by:
initVerify in class BaseSignature
Throws:
InvalidKeyException

initSign

protected void initSign()
                 throws InvalidKeyException
Specified by:
initSign in class BaseSignature
Throws:
InvalidKeyException

sign

protected byte[] sign(byte[] data)
               throws SignatureException
Specified by:
sign in class BaseSignature
Throws:
SignatureException

verify

protected boolean verify(byte[] signature,
                         byte[] data)
                  throws SignatureException
Specified by:
verify in class BaseSignature
Throws:
SignatureException