summaryrefslogtreecommitdiff
path: root/libjava/gnu/javax/crypto/jce/keyring/GnuKeyring.h
blob: 4f9b6f90e21705730abf5e4e7bbeb85bf16ef4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_javax_crypto_jce_keyring_GnuKeyring__
#define __gnu_javax_crypto_jce_keyring_GnuKeyring__

#pragma interface

#include <java/security/KeyStoreSpi.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace javax
    {
      namespace crypto
      {
        namespace jce
        {
          namespace keyring
          {
              class GnuKeyring;
          }
        }
        namespace keyring
        {
            class IKeyring;
            class IPrivateKeyring;
            class IPublicKeyring;
        }
      }
    }
  }
  namespace java
  {
    namespace security
    {
        class Key;
      namespace cert
      {
          class Certificate;
      }
    }
  }
}

class gnu::javax::crypto::jce::keyring::GnuKeyring : public ::java::security::KeyStoreSpi
{

public:
  GnuKeyring();
  virtual ::java::util::Enumeration * engineAliases();
  virtual jboolean engineContainsAlias(::java::lang::String *);
  virtual void engineDeleteEntry(::java::lang::String *);
  virtual ::java::security::cert::Certificate * engineGetCertificate(::java::lang::String *);
  virtual ::java::lang::String * engineGetCertificateAlias(::java::security::cert::Certificate *);
  virtual void engineSetCertificateEntry(::java::lang::String *, ::java::security::cert::Certificate *);
  virtual JArray< ::java::security::cert::Certificate * > * engineGetCertificateChain(::java::lang::String *);
  virtual ::java::util::Date * engineGetCreationDate(::java::lang::String *);
  virtual ::java::security::Key * engineGetKey(::java::lang::String *, JArray< jchar > *);
  virtual void engineSetKeyEntry(::java::lang::String *, ::java::security::Key *, JArray< jchar > *, JArray< ::java::security::cert::Certificate * > *);
  virtual void engineSetKeyEntry(::java::lang::String *, JArray< jbyte > *, JArray< ::java::security::cert::Certificate * > *);
  virtual jboolean engineIsCertificateEntry(::java::lang::String *);
  virtual jboolean engineIsKeyEntry(::java::lang::String *);
  virtual void engineLoad(::java::io::InputStream *, JArray< jchar > *);
  virtual void engineStore(::java::io::OutputStream *, JArray< jchar > *);
  virtual jint engineSize();
private:
  void ensureLoaded();
  void loadPrivateKeyring(::java::io::InputStream *, JArray< jchar > *);
  void loadPublicKeyring(::java::io::InputStream *, JArray< jchar > *);
  ::java::util::Date * getCreationDate(::java::lang::String *, ::gnu::javax::crypto::keyring::IKeyring *);
  void createNewKeyrings();
  static ::java::util::logging::Logger * log;
  static ::java::lang::String * NOT_LOADED;
  jboolean __attribute__((aligned(__alignof__( ::java::security::KeyStoreSpi)))) loaded;
  ::gnu::javax::crypto::keyring::IPrivateKeyring * privateKR;
  ::gnu::javax::crypto::keyring::IPublicKeyring * publicKR;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_javax_crypto_jce_keyring_GnuKeyring__