com.mindbright.security.publickey
Class RSAWithAny

java.lang.Object
  |
  +--com.mindbright.jca.security.SignatureSpi
        |
        +--com.mindbright.security.publickey.BaseSignature
              |
              +--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 com.mindbright.jca.security.InvalidKeyException
Specified by:
initVerify in class BaseSignature
com.mindbright.jca.security.InvalidKeyException

initSign

protected void initSign()
                 throws com.mindbright.jca.security.InvalidKeyException
Specified by:
initSign in class BaseSignature
com.mindbright.jca.security.InvalidKeyException

sign

protected byte[] sign(byte[] data)
               throws com.mindbright.jca.security.SignatureException
Specified by:
sign in class BaseSignature
com.mindbright.jca.security.SignatureException

verify

protected boolean verify(byte[] signature,
                         byte[] data)
                  throws com.mindbright.jca.security.SignatureException
Specified by:
verify in class BaseSignature
com.mindbright.jca.security.SignatureException