2015-03-04 Robert Dewar <dewar@adacore.com>
[official-gcc.git] / libjava / java / security / MessageDigest.h
blob5cd6cf3b1a58df065052e1c199ea3973bee1af09
2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __java_security_MessageDigest__
5 #define __java_security_MessageDigest__
7 #pragma interface
9 #include <java/security/MessageDigestSpi.h>
10 #include <gcj/array.h>
12 extern "Java"
14 namespace java
16 namespace nio
18 class ByteBuffer;
20 namespace security
22 class MessageDigest;
23 class Provider;
28 class java::security::MessageDigest : public ::java::security::MessageDigestSpi
31 public: // actually protected
32 MessageDigest(::java::lang::String *);
33 public:
34 static ::java::security::MessageDigest * getInstance(::java::lang::String *);
35 static ::java::security::MessageDigest * getInstance(::java::lang::String *, ::java::lang::String *);
36 static ::java::security::MessageDigest * getInstance(::java::lang::String *, ::java::security::Provider *);
37 virtual ::java::security::Provider * getProvider();
38 virtual void update(jbyte);
39 virtual void update(JArray< jbyte > *, jint, jint);
40 virtual void update(JArray< jbyte > *);
41 virtual void update(::java::nio::ByteBuffer *);
42 virtual JArray< jbyte > * digest();
43 virtual jint digest(JArray< jbyte > *, jint, jint);
44 virtual JArray< jbyte > * digest(JArray< jbyte > *);
45 virtual ::java::lang::String * toString();
46 static jboolean isEqual(JArray< jbyte > *, JArray< jbyte > *);
47 virtual void reset();
48 virtual ::java::lang::String * getAlgorithm();
49 virtual jint getDigestLength();
50 virtual ::java::lang::Object * clone();
51 private:
52 ::java::lang::String * digestToString();
53 static ::java::lang::String * MESSAGE_DIGEST;
54 ::java::lang::String * __attribute__((aligned(__alignof__( ::java::security::MessageDigestSpi)))) algorithm;
55 public: // actually package-private
56 ::java::security::Provider * provider;
57 private:
58 JArray< jbyte > * lastDigest;
59 public:
60 static ::java::lang::Class class$;
63 #endif // __java_security_MessageDigest__