Build 1.0_r1(from source)

java.security
Class SignatureSpi

java.lang.Object
  extended by java.security.SignatureSpi
Direct Known Subclasses:
Signature

public abstract class SignatureSpi
extends Object


Field Summary
protected  SecureRandom appRandom
           
 
Constructor Summary
SignatureSpi()
           
 
Method Summary
 Object clone()
          Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.
protected abstract  Object engineGetParameter(String param)
          Deprecated. There is no generally accepted parameter naming convention.
protected  AlgorithmParameters engineGetParameters()
           
protected abstract  void engineInitSign(PrivateKey privateKey)
           
protected  void engineInitSign(PrivateKey privateKey, SecureRandom random)
           
protected abstract  void engineInitVerify(PublicKey publicKey)
           
protected  void engineSetParameter(AlgorithmParameterSpec params)
           
protected abstract  void engineSetParameter(String param, Object value)
          Deprecated. Use engineSetParameter
protected abstract  byte[] engineSign()
           
protected  int engineSign(byte[] outbuf, int offset, int len)
           
protected abstract  void engineUpdate(byte b)
           
protected abstract  void engineUpdate(byte[] b, int off, int len)
           
protected  void engineUpdate(ByteBuffer input)
           
protected abstract  boolean engineVerify(byte[] sigBytes)
           
protected  boolean engineVerify(byte[] sigBytes, int offset, int length)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

appRandom

protected SecureRandom appRandom
Constructor Detail

SignatureSpi

public SignatureSpi()
Method Detail

engineInitVerify

protected abstract void engineInitVerify(PublicKey publicKey)
                                  throws InvalidKeyException
Throws:
InvalidKeyException

engineInitSign

protected abstract void engineInitSign(PrivateKey privateKey)
                                throws InvalidKeyException
Throws:
InvalidKeyException

engineInitSign

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

engineUpdate

protected abstract void engineUpdate(byte b)
                              throws SignatureException
Throws:
SignatureException

engineUpdate

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

engineUpdate

protected void engineUpdate(ByteBuffer input)

engineSign

protected abstract byte[] engineSign()
                              throws SignatureException
Throws:
SignatureException

engineSign

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

engineVerify

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

engineVerify

protected boolean engineVerify(byte[] sigBytes,
                               int offset,
                               int length)
                        throws SignatureException
Throws:
SignatureException

engineSetParameter

protected abstract void engineSetParameter(String param,
                                           Object value)
                                    throws InvalidParameterException
Deprecated. Use engineSetParameter

Throws:
InvalidParameterException

engineSetParameter

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

engineGetParameters

protected AlgorithmParameters engineGetParameters()

engineGetParameter

protected abstract Object engineGetParameter(String param)
                                      throws InvalidParameterException
Deprecated. There is no generally accepted parameter naming convention.

Throws:
InvalidParameterException

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: Object
Returns a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.

Classes which wish to support cloning must specify that they implement the Cloneable interface, since the implementation checks for this.

Overrides:
clone in class Object
Returns:
Object a shallow copy of this object.
Throws:
CloneNotSupportedException - if the receiver's class does not implement the interface Cloneable.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature