For the latest news and information visit
The GNU Crypto project

gnu.crypto.pki.provider
Class DSASignature

java.lang.Object
  extended byjava.security.SignatureSpi
      extended bygnu.crypto.pki.provider.DSASignature

public class DSASignature
extends SignatureSpi


Field Summary
 
Fields inherited from class java.security.SignatureSpi
appRandom
 
Constructor Summary
DSASignature()
           
 
Method Summary
 Object engineGetParameter(String param)
           
 void engineInitSign(PrivateKey privateKey)
           
 void engineInitSign(PrivateKey privateKey, SecureRandom random)
           
 void engineInitVerify(PublicKey publicKey)
           
 void engineSetParameter(AlgorithmParameterSpec params)
           
 void engineSetParameter(String param, Object value)
           
 byte[] engineSign()
           
 int engineSign(byte[] outbuf, int offset, int len)
           
 void engineUpdate(byte b)
           
 void engineUpdate(byte[] b, int off, int len)
           
 boolean engineVerify(byte[] sigBytes)
           
 
Methods inherited from class java.security.SignatureSpi
clone, engineGetParameters, engineVerify
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSASignature

public DSASignature()
             throws NoSuchAlgorithmException
Method Detail

engineInitVerify

public void engineInitVerify(PublicKey publicKey)
                      throws InvalidKeyException
Throws:
InvalidKeyException

engineInitSign

public void engineInitSign(PrivateKey privateKey)
                    throws InvalidKeyException
Throws:
InvalidKeyException

engineInitSign

public void engineInitSign(PrivateKey privateKey,
                           SecureRandom random)
                    throws InvalidKeyException
Throws:
InvalidKeyException

engineUpdate

public void engineUpdate(byte b)
                  throws SignatureException
Throws:
SignatureException

engineUpdate

public void engineUpdate(byte[] b,
                         int off,
                         int len)
                  throws SignatureException
Throws:
SignatureException

engineSign

public byte[] engineSign()
                  throws SignatureException
Throws:
SignatureException

engineSign

public int engineSign(byte[] outbuf,
                      int offset,
                      int len)
               throws SignatureException
Throws:
SignatureException

engineVerify

public boolean engineVerify(byte[] sigBytes)
                     throws SignatureException
Throws:
SignatureException

engineSetParameter

public void engineSetParameter(String param,
                               Object value)
                        throws InvalidParameterException
Throws:
InvalidParameterException

engineSetParameter

public void engineSetParameter(AlgorithmParameterSpec params)
                        throws InvalidAlgorithmParameterException
Throws:
InvalidAlgorithmParameterException

engineGetParameter

public Object engineGetParameter(String param)
                          throws InvalidParameterException
Throws:
InvalidParameterException

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.