1 |
756 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __gnu_java_security_x509_X509Certificate__
|
5 |
|
|
#define __gnu_java_security_x509_X509Certificate__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/security/cert/X509Certificate.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace gnu
|
15 |
|
|
{
|
16 |
|
|
namespace java
|
17 |
|
|
{
|
18 |
|
|
namespace security
|
19 |
|
|
{
|
20 |
|
|
class OID;
|
21 |
|
|
namespace der
|
22 |
|
|
{
|
23 |
|
|
class BitString;
|
24 |
|
|
}
|
25 |
|
|
namespace x509
|
26 |
|
|
{
|
27 |
|
|
class X500DistinguishedName;
|
28 |
|
|
class X509Certificate;
|
29 |
|
|
namespace ext
|
30 |
|
|
{
|
31 |
|
|
class Extension;
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
}
|
35 |
|
|
}
|
36 |
|
|
}
|
37 |
|
|
namespace java
|
38 |
|
|
{
|
39 |
|
|
namespace math
|
40 |
|
|
{
|
41 |
|
|
class BigInteger;
|
42 |
|
|
}
|
43 |
|
|
namespace security
|
44 |
|
|
{
|
45 |
|
|
class Principal;
|
46 |
|
|
class PublicKey;
|
47 |
|
|
class Signature;
|
48 |
|
|
}
|
49 |
|
|
}
|
50 |
|
|
namespace javax
|
51 |
|
|
{
|
52 |
|
|
namespace security
|
53 |
|
|
{
|
54 |
|
|
namespace auth
|
55 |
|
|
{
|
56 |
|
|
namespace x500
|
57 |
|
|
{
|
58 |
|
|
class X500Principal;
|
59 |
|
|
}
|
60 |
|
|
}
|
61 |
|
|
}
|
62 |
|
|
}
|
63 |
|
|
}
|
64 |
|
|
|
65 |
|
|
class gnu::java::security::x509::X509Certificate : public ::java::security::cert::X509Certificate
|
66 |
|
|
{
|
67 |
|
|
|
68 |
|
|
public:
|
69 |
|
|
X509Certificate(::java::io::InputStream *);
|
70 |
|
|
public: // actually protected
|
71 |
|
|
X509Certificate();
|
72 |
|
|
public:
|
73 |
|
|
virtual void checkValidity();
|
74 |
|
|
virtual void checkValidity(::java::util::Date *);
|
75 |
|
|
virtual jint getVersion();
|
76 |
|
|
virtual ::java::math::BigInteger * getSerialNumber();
|
77 |
|
|
virtual ::java::security::Principal * getIssuerDN();
|
78 |
|
|
virtual ::javax::security::auth::x500::X500Principal * getIssuerX500Principal();
|
79 |
|
|
virtual ::java::security::Principal * getSubjectDN();
|
80 |
|
|
virtual ::javax::security::auth::x500::X500Principal * getSubjectX500Principal();
|
81 |
|
|
virtual ::java::util::Date * getNotBefore();
|
82 |
|
|
virtual ::java::util::Date * getNotAfter();
|
83 |
|
|
virtual JArray< jbyte > * getTBSCertificate();
|
84 |
|
|
virtual JArray< jbyte > * getSignature();
|
85 |
|
|
virtual ::java::lang::String * getSigAlgName();
|
86 |
|
|
virtual ::java::lang::String * getSigAlgOID();
|
87 |
|
|
virtual JArray< jbyte > * getSigAlgParams();
|
88 |
|
|
virtual JArray< jboolean > * getIssuerUniqueID();
|
89 |
|
|
virtual JArray< jboolean > * getSubjectUniqueID();
|
90 |
|
|
virtual JArray< jboolean > * getKeyUsage();
|
91 |
|
|
virtual ::java::util::List * getExtendedKeyUsage();
|
92 |
|
|
virtual jint getBasicConstraints();
|
93 |
|
|
virtual ::java::util::Collection * getSubjectAlternativeNames();
|
94 |
|
|
virtual ::java::util::Collection * getIssuerAlternativeNames();
|
95 |
|
|
virtual jboolean hasUnsupportedCriticalExtension();
|
96 |
|
|
virtual ::java::util::Set * getCriticalExtensionOIDs();
|
97 |
|
|
virtual ::java::util::Set * getNonCriticalExtensionOIDs();
|
98 |
|
|
virtual JArray< jbyte > * getExtensionValue(::java::lang::String *);
|
99 |
|
|
virtual ::gnu::java::security::x509::ext::Extension * getExtension(::gnu::java::security::OID *);
|
100 |
|
|
virtual ::java::util::Collection * getExtensions();
|
101 |
|
|
virtual JArray< jbyte > * getEncoded();
|
102 |
|
|
virtual void verify(::java::security::PublicKey *);
|
103 |
|
|
virtual void verify(::java::security::PublicKey *, ::java::lang::String *);
|
104 |
|
|
virtual ::java::lang::String * toString();
|
105 |
|
|
virtual ::java::security::PublicKey * getPublicKey();
|
106 |
|
|
virtual jboolean equals(::java::lang::Object *);
|
107 |
|
|
private:
|
108 |
|
|
void doVerify(::java::security::Signature *, ::java::security::PublicKey *);
|
109 |
|
|
void parse(::java::io::InputStream *);
|
110 |
|
|
static const jlong serialVersionUID = -2491127588187038216LL;
|
111 |
|
|
static ::java::util::logging::Logger * logger;
|
112 |
|
|
public: // actually protected
|
113 |
|
|
static ::gnu::java::security::OID * ID_DSA;
|
114 |
|
|
static ::gnu::java::security::OID * ID_DSA_WITH_SHA1;
|
115 |
|
|
static ::gnu::java::security::OID * ID_RSA;
|
116 |
|
|
static ::gnu::java::security::OID * ID_RSA_WITH_MD2;
|
117 |
|
|
static ::gnu::java::security::OID * ID_RSA_WITH_MD5;
|
118 |
|
|
static ::gnu::java::security::OID * ID_RSA_WITH_SHA1;
|
119 |
|
|
static ::gnu::java::security::OID * ID_ECDSA_WITH_SHA1;
|
120 |
|
|
JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::security::cert::X509Certificate)))) encoded;
|
121 |
|
|
JArray< jbyte > * tbsCertBytes;
|
122 |
|
|
jint version;
|
123 |
|
|
::java::math::BigInteger * serialNo;
|
124 |
|
|
::gnu::java::security::OID * algId;
|
125 |
|
|
JArray< jbyte > * algVal;
|
126 |
|
|
::gnu::java::security::x509::X500DistinguishedName * issuer;
|
127 |
|
|
::java::util::Date * notBefore;
|
128 |
|
|
::java::util::Date * notAfter;
|
129 |
|
|
::gnu::java::security::x509::X500DistinguishedName * subject;
|
130 |
|
|
::java::security::PublicKey * subjectKey;
|
131 |
|
|
::gnu::java::security::der::BitString * issuerUniqueId;
|
132 |
|
|
::gnu::java::security::der::BitString * subjectUniqueId;
|
133 |
|
|
::java::util::Map * extensions;
|
134 |
|
|
::gnu::java::security::OID * sigAlgId;
|
135 |
|
|
JArray< jbyte > * sigAlgVal;
|
136 |
|
|
JArray< jbyte > * signature;
|
137 |
|
|
public:
|
138 |
|
|
static ::java::lang::Class class$;
|
139 |
|
|
};
|
140 |
|
|
|
141 |
|
|
#endif // __gnu_java_security_x509_X509Certificate__
|