1 2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- 3 4 #ifndef __java_security_MessageDigest__ 5 #define __java_security_MessageDigest__ 6 7 #pragma interface 8 9 #include <java/security/MessageDigestSpi.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 MessageDigest; 23 class Provider; 24 } 25 } 26 } 27 28 class java::security::MessageDigest : public ::java::security::MessageDigestSpi 29 { 30 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$; 61 }; 62 63 #endif // __java_security_MessageDigest__ 64