| 1 |
758 |
jeremybenn |
|
| 2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
| 3 |
|
|
|
| 4 |
|
|
#ifndef __java_security_Signature__
|
| 5 |
|
|
#define __java_security_Signature__
|
| 6 |
|
|
|
| 7 |
|
|
#pragma interface
|
| 8 |
|
|
|
| 9 |
|
|
#include <java/security/SignatureSpi.h>
|
| 10 |
|
|
#include <gcj/array.h>
|
| 11 |
|
|
|
| 12 |
|
|
extern "Java"
|
| 13 |
|
|
{
|
| 14 |
|
|
namespace java
|
| 15 |
|
|
{
|
| 16 |
|
|
namespace nio
|
| 17 |
|
|
{
|
| 18 |
|
|
class ByteBuffer;
|
| 19 |
|
|
}
|
| 20 |
|
|
namespace security
|
| 21 |
|
|
{
|
| 22 |
|
|
class AlgorithmParameters;
|
| 23 |
|
|
class PrivateKey;
|
| 24 |
|
|
class Provider;
|
| 25 |
|
|
class PublicKey;
|
| 26 |
|
|
class SecureRandom;
|
| 27 |
|
|
class Signature;
|
| 28 |
|
|
namespace cert
|
| 29 |
|
|
{
|
| 30 |
|
|
class Certificate;
|
| 31 |
|
|
}
|
| 32 |
|
|
namespace spec
|
| 33 |
|
|
{
|
| 34 |
|
|
class AlgorithmParameterSpec;
|
| 35 |
|
|
}
|
| 36 |
|
|
}
|
| 37 |
|
|
}
|
| 38 |
|
|
}
|
| 39 |
|
|
|
| 40 |
|
|
class java::security::Signature : public ::java::security::SignatureSpi
|
| 41 |
|
|
{
|
| 42 |
|
|
|
| 43 |
|
|
public: // actually protected
|
| 44 |
|
|
Signature(::java::lang::String *);
|
| 45 |
|
|
public:
|
| 46 |
|
|
static ::java::security::Signature * getInstance(::java::lang::String *);
|
| 47 |
|
|
static ::java::security::Signature * getInstance(::java::lang::String *, ::java::lang::String *);
|
| 48 |
|
|
static ::java::security::Signature * getInstance(::java::lang::String *, ::java::security::Provider *);
|
| 49 |
|
|
virtual ::java::security::Provider * getProvider();
|
| 50 |
|
|
virtual void initVerify(::java::security::PublicKey *);
|
| 51 |
|
|
virtual void initVerify(::java::security::cert::Certificate *);
|
| 52 |
|
|
virtual void initSign(::java::security::PrivateKey *);
|
| 53 |
|
|
virtual void initSign(::java::security::PrivateKey *, ::java::security::SecureRandom *);
|
| 54 |
|
|
virtual JArray< jbyte > * sign();
|
| 55 |
|
|
virtual jint sign(JArray< jbyte > *, jint, jint);
|
| 56 |
|
|
virtual jboolean verify(JArray< jbyte > *);
|
| 57 |
|
|
virtual jboolean verify(JArray< jbyte > *, jint, jint);
|
| 58 |
|
|
virtual void update(jbyte);
|
| 59 |
|
|
virtual void update(JArray< jbyte > *);
|
| 60 |
|
|
virtual void update(JArray< jbyte > *, jint, jint);
|
| 61 |
|
|
virtual void update(::java::nio::ByteBuffer *);
|
| 62 |
|
|
virtual ::java::lang::String * getAlgorithm();
|
| 63 |
|
|
virtual ::java::lang::String * toString();
|
| 64 |
|
|
virtual void setParameter(::java::lang::String *, ::java::lang::Object *);
|
| 65 |
|
|
virtual void setParameter(::java::security::spec::AlgorithmParameterSpec *);
|
| 66 |
|
|
virtual ::java::security::AlgorithmParameters * getParameters();
|
| 67 |
|
|
virtual ::java::lang::Object * getParameter(::java::lang::String *);
|
| 68 |
|
|
virtual ::java::lang::Object * clone();
|
| 69 |
|
|
private:
|
| 70 |
|
|
static ::java::lang::String * SIGNATURE;
|
| 71 |
|
|
public: // actually protected
|
| 72 |
|
|
static const jint UNINITIALIZED = 0;
|
| 73 |
|
|
static const jint SIGN = 2;
|
| 74 |
|
|
static const jint VERIFY = 3;
|
| 75 |
|
|
jint __attribute__((aligned(__alignof__( ::java::security::SignatureSpi)))) state;
|
| 76 |
|
|
private:
|
| 77 |
|
|
::java::lang::String * algorithm;
|
| 78 |
|
|
public: // actually package-private
|
| 79 |
|
|
::java::security::Provider * provider;
|
| 80 |
|
|
public:
|
| 81 |
|
|
static ::java::lang::Class class$;
|
| 82 |
|
|
};
|
| 83 |
|
|
|
| 84 |
|
|
#endif // __java_security_Signature__
|