org.xlattice
Interface DigSigner


public interface DigSigner

Digital signature generator. Instances of this are created by invoking Key.getSigner(String digestName).

Author:
Jim Dixon
See Also:
Key

Method Summary
 java.lang.String getAlgorithm()
           
 int length()
           
 byte[] sign()
          Generate a digital signature and implicitly reset().
 DigSigner update(byte[] data)
          Add the binary data referenced to any already processed by the message digest part of the algorithm.
 DigSigner update(byte[] data, int offset, int len)
           
 

Method Detail

getAlgorithm

java.lang.String getAlgorithm()

length

int length()
Returns:
the length of the digital signature generated

update

DigSigner update(byte[] data)
                 throws CryptoException
Add the binary data referenced to any already processed by the message digest part of the algorithm.

Throws:
CryptoException

update

DigSigner update(byte[] data,
                 int offset,
                 int len)
                 throws CryptoException
Throws:
CryptoException

sign

byte[] sign()
            throws CryptoException
Generate a digital signature and implicitly reset().

Returns:
the digital signature as a byte array
Throws:
CryptoException