|
Public Member Functions |
virtual | ~Signature () |
AlgorithmParameters * | getParameters () const |
void | setParameter (const AlgorithmParameterSpec &) throw (InvalidAlgorithmParameterException) |
void | initSign (const PrivateKey &) throw (InvalidKeyException) |
void | initSign (const PrivateKey &, SecureRandom *) throw (InvalidKeyException) |
void | initVerify (const PublicKey &) throw (InvalidKeyException) |
bytearray * | sign () throw (IllegalStateException, SignatureException) |
size_t | sign (byte *, size_t, size_t) throw (ShortBufferException, IllegalStateException, SignatureException) |
size_t | sign (bytearray &) throw (IllegalStateException, SignatureException) |
bool | verify (const bytearray &) throw (IllegalStateException, SignatureException) |
bool | verify (const byte *, size_t, size_t) throw (IllegalStateException, SignatureException) |
void | update (byte) throw (IllegalStateException) |
void | update (const byte *, size_t, size_t) throw (IllegalStateException) |
void | update (const bytearray &) throw (IllegalStateException) |
const String & | getAlgorithm () const throw () |
const Provider & | getProvider () const throw () |
Static Public Member Functions |
static Signature * | getInstance (const String &algorithm) throw (NoSuchAlgorithmException) |
| Returns a Signature object that implements the requested algorithm.
|
static Signature * | getInstance (const String &algorithm, const String &provider) throw (NoSuchAlgorithmException, NoSuchProviderException) |
| Returns a Signature object that implements the requested algorithm, from the requested provider.
|
static Signature * | getInstance (const String &algorithm, const Provider &provider) throw (NoSuchAlgorithmException) |
Protected Member Functions |
| Signature (SignatureSpi *spi, const Provider *provider, const String &algorithm) |
Protected Attributes |
int | state |
Static Protected Attributes |
static const int | UNINITIALIZED = 0 |
static const int | VERIFY = 1 |
static const int | SIGN = 2 |