GnuKeyring.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_javax_crypto_jce_keyring_GnuKeyring__
  3. #define __gnu_javax_crypto_jce_keyring_GnuKeyring__
  4. #pragma interface
  5. #include <java/security/KeyStoreSpi.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace javax
  12. {
  13. namespace crypto
  14. {
  15. namespace jce
  16. {
  17. namespace keyring
  18. {
  19. class GnuKeyring;
  20. }
  21. }
  22. namespace keyring
  23. {
  24. class IKeyring;
  25. class IPrivateKeyring;
  26. class IPublicKeyring;
  27. }
  28. }
  29. }
  30. }
  31. namespace java
  32. {
  33. namespace security
  34. {
  35. class Key;
  36. namespace cert
  37. {
  38. class Certificate;
  39. }
  40. }
  41. }
  42. }
  43. class gnu::javax::crypto::jce::keyring::GnuKeyring : public ::java::security::KeyStoreSpi
  44. {
  45. public:
  46. GnuKeyring();
  47. virtual ::java::util::Enumeration * engineAliases();
  48. virtual jboolean engineContainsAlias(::java::lang::String *);
  49. virtual void engineDeleteEntry(::java::lang::String *);
  50. virtual ::java::security::cert::Certificate * engineGetCertificate(::java::lang::String *);
  51. virtual ::java::lang::String * engineGetCertificateAlias(::java::security::cert::Certificate *);
  52. virtual void engineSetCertificateEntry(::java::lang::String *, ::java::security::cert::Certificate *);
  53. virtual JArray< ::java::security::cert::Certificate * > * engineGetCertificateChain(::java::lang::String *);
  54. virtual ::java::util::Date * engineGetCreationDate(::java::lang::String *);
  55. virtual ::java::security::Key * engineGetKey(::java::lang::String *, JArray< jchar > *);
  56. virtual void engineSetKeyEntry(::java::lang::String *, ::java::security::Key *, JArray< jchar > *, JArray< ::java::security::cert::Certificate * > *);
  57. virtual void engineSetKeyEntry(::java::lang::String *, JArray< jbyte > *, JArray< ::java::security::cert::Certificate * > *);
  58. virtual jboolean engineIsCertificateEntry(::java::lang::String *);
  59. virtual jboolean engineIsKeyEntry(::java::lang::String *);
  60. virtual void engineLoad(::java::io::InputStream *, JArray< jchar > *);
  61. virtual void engineStore(::java::io::OutputStream *, JArray< jchar > *);
  62. virtual jint engineSize();
  63. private:
  64. void ensureLoaded();
  65. void loadPrivateKeyring(::java::io::InputStream *, JArray< jchar > *);
  66. void loadPublicKeyring(::java::io::InputStream *, JArray< jchar > *);
  67. ::java::util::Date * getCreationDate(::java::lang::String *, ::gnu::javax::crypto::keyring::IKeyring *);
  68. void createNewKeyrings();
  69. static ::java::util::logging::Logger * log;
  70. static ::java::lang::String * NOT_LOADED;
  71. jboolean __attribute__((aligned(__alignof__( ::java::security::KeyStoreSpi)))) loaded;
  72. ::gnu::javax::crypto::keyring::IPrivateKeyring * privateKR;
  73. ::gnu::javax::crypto::keyring::IPublicKeyring * publicKR;
  74. public:
  75. static ::java::lang::Class class$;
  76. };
  77. #endif // __gnu_javax_crypto_jce_keyring_GnuKeyring__