API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. SignatureSpi View Source
Author(s)
Benjamin Renaud
Since
Version
1.26, 04/07/06
Serial
Hierarchy
 Object
      SignatureSpi
Implements
Subclasses
Description
publicabstract abstract class SignatureSpi
  This class defines the Service Provider Interface (SPI) for the Signature class, which is used to provide the functionality of a digital signature algorithm.
See also:    Signature
Constructors
public SignatureSpi ()
Methods
Hide/Show inherited methods
public Object clone () throws CloneNotSupportedException
  Returns a clone if the implementation is cloneable.
@Deprecated
protectedabstract Object engineGetParameter (String param) throws InvalidParameterException
  Gets the value of the specified algorithm parameter.
protected AlgorithmParameters engineGetParameters ()
  This method is overridden by providers to return the parameters used with this signature engine, or null if this signature engine does not use any parameters.
protectedabstract void engineInitSign (PrivateKey privateKey) throws InvalidKeyException
  Initializes this signature object with the specified private key for signing operations.
protected void engineInitSign (PrivateKey privateKey, SecureRandom random) throws InvalidKeyException
  Initializes this signature object with the specified private key and source of randomness for signing operations.
protectedabstract void engineInitVerify (PublicKey publicKey) throws InvalidKeyException
  Initializes this signature object with the specified public key for verification operations.
protected void engineSetParameter (AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException
  This method is overridden by providers to initialize this signature engine with the specified parameter set.
@Deprecated
protectedabstract void engineSetParameter (String param, Object value) throws InvalidParameterException
  Sets the specified algorithm parameter to the specified value.
protectedabstract byte engineSign () throws SignatureException
  Returns the signature bytes of all the data updated so far.
protected int engineSign (byte[] outbuf, int offset, int len) throws SignatureException
  Finishes this signature operation and stores the resulting signature bytes in the provided buffer outbuf, starting at offset.
protectedabstract void engineUpdate (byte b) throws SignatureException
  Updates the data to be signed or verified using the specified byte.
protectedabstract void engineUpdate (byte[] b, int off, int len) throws SignatureException
  Updates the data to be signed or verified, using the specified array of bytes, starting at the specified offset.
protected void engineUpdate (ByteBuffer input)
  Updates the data to be signed or verified using the specified ByteBuffer.
protectedabstract boolean engineVerify (byte[] sigBytes) throws SignatureException
  Verifies the passed-in signature.
protected boolean engineVerify (byte[] sigBytes, int offset, int length) throws SignatureException
  Verifies the passed-in signature in the specified array of bytes, starting at the specified offset.
Fields
Hide/Show inherited fields
protected SecureRandom appRandom
Application-specified source of randomness.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar