diff options
Diffstat (limited to 'libjava/gnu/java/security')
182 files changed, 9773 insertions, 0 deletions
diff --git a/libjava/gnu/java/security/Configuration.h b/libjava/gnu/java/security/Configuration.h new file mode 100644 index 000000000..ea2bb7049 --- /dev/null +++ b/libjava/gnu/java/security/Configuration.h @@ -0,0 +1,32 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_Configuration__ +#define __gnu_java_security_Configuration__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class Configuration; + } + } + } +} + +class gnu::java::security::Configuration : public ::java::lang::Object +{ + +public: + static const jboolean DEBUG = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_Configuration__ diff --git a/libjava/gnu/java/security/Engine.h b/libjava/gnu/java/security/Engine.h new file mode 100644 index 000000000..53447ecb3 --- /dev/null +++ b/libjava/gnu/java/security/Engine.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_Engine__ +#define __gnu_java_security_Engine__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class Engine; + } + } + } + namespace java + { + namespace security + { + class Provider; + } + } +} + +class gnu::java::security::Engine : public ::java::lang::Object +{ + + Engine(); +public: + static ::java::lang::Object * getInstance(::java::lang::String *, ::java::lang::String *, ::java::security::Provider *); + static ::java::lang::Object * getInstance(::java::lang::String *, ::java::lang::String *, ::java::security::Provider *, JArray< ::java::lang::Object * > *); +private: + static ::java::lang::reflect::Constructor * getCompatibleConstructor(::java::lang::Class *, JArray< ::java::lang::Object * > *); + static ::java::lang::String * ALG_ALIAS; + static const jint MAX_ALIASES = 5; + static JArray< ::java::lang::Object * > * NO_ARGS; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_Engine__ diff --git a/libjava/gnu/java/security/OID.h b/libjava/gnu/java/security/OID.h new file mode 100644 index 000000000..40347732d --- /dev/null +++ b/libjava/gnu/java/security/OID.h @@ -0,0 +1,64 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_OID__ +#define __gnu_java_security_OID__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + } + } + } +} + +class gnu::java::security::OID : public ::java::lang::Object +{ + +public: + OID(JArray< jint > *); + OID(JArray< jint > *, jboolean); + OID(::java::lang::String *); + OID(::java::lang::String *, jboolean); + OID(::java::io::InputStream *, jint); + OID(::java::io::InputStream *, jint, jboolean); + OID(JArray< jbyte > *); + OID(JArray< jbyte > *, jboolean); + virtual JArray< jint > * getIDs(); + virtual JArray< jbyte > * getDER(); + virtual ::gnu::java::security::OID * getParent(); + virtual ::gnu::java::security::OID * getChild(jint); + virtual ::gnu::java::security::OID * getRoot(); + virtual jboolean isRelative(); + virtual ::java::lang::Object * clone(); + virtual ::java::lang::String * toString(); + virtual jint hashCode(); + virtual jboolean equals(::java::lang::Object *); + virtual jint compareTo(::java::lang::Object *); +private: + static JArray< jint > * fromDER(JArray< jbyte > *, jboolean); + static JArray< jint > * fromString(::java::lang::String *); + static void encodeSubID(::java::io::ByteArrayOutputStream *, jint); +public: // actually package-private + static const jlong serialVersionUID = 5722492029044597779LL; +private: + JArray< jint > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) components; + ::java::lang::String * strRep; + JArray< jbyte > * der; + jboolean relative; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_OID__ diff --git a/libjava/gnu/java/security/PolicyFile$1.h b/libjava/gnu/java/security/PolicyFile$1.h new file mode 100644 index 000000000..9b16a0ec4 --- /dev/null +++ b/libjava/gnu/java/security/PolicyFile$1.h @@ -0,0 +1,40 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_PolicyFile$1__ +#define __gnu_java_security_PolicyFile$1__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class PolicyFile; + class PolicyFile$1; + } + } + } +} + +class gnu::java::security::PolicyFile$1 : public ::java::lang::Object +{ + +public: // actually package-private + PolicyFile$1(::gnu::java::security::PolicyFile *, ::java::util::List *); +public: + virtual ::java::lang::Object * run(); +public: // actually package-private + ::gnu::java::security::PolicyFile * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +private: + ::java::util::List * val$policyFiles; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_PolicyFile$1__ diff --git a/libjava/gnu/java/security/PolicyFile.h b/libjava/gnu/java/security/PolicyFile.h new file mode 100644 index 000000000..768e3d98c --- /dev/null +++ b/libjava/gnu/java/security/PolicyFile.h @@ -0,0 +1,67 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_PolicyFile__ +#define __gnu_java_security_PolicyFile__ + +#pragma interface + +#include <java/security/Policy.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class PolicyFile; + namespace action + { + class GetPropertyAction; + } + } + } + } + namespace java + { + namespace net + { + class URL; + } + namespace security + { + class CodeSource; + class PermissionCollection; + } + } +} + +class gnu::java::security::PolicyFile : public ::java::security::Policy +{ + +public: + PolicyFile(); + ::java::security::PermissionCollection * getPermissions(::java::security::CodeSource *); + void refresh(); + ::java::lang::String * toString(); +private: + void parse(::java::net::URL *); + static ::java::lang::String * expand(::java::lang::String *); + static void error(::java::net::URL *, ::java::io::StreamTokenizer *, ::java::lang::String *); +public: // actually protected + static ::java::util::logging::Logger * logger; +private: + static ::gnu::java::security::action::GetPropertyAction * prop; + static ::java::lang::String * fs; + static ::java::lang::String * DEFAULT_POLICY; + static ::java::lang::String * DEFAULT_USER_POLICY; + ::java::util::Map * __attribute__((aligned(__alignof__( ::java::security::Policy)))) cs2pc; + static const jint STATE_BEGIN = 0; + static const jint STATE_GRANT = 1; + static const jint STATE_PERMS = 2; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_PolicyFile__ diff --git a/libjava/gnu/java/security/Properties$1.h b/libjava/gnu/java/security/Properties$1.h new file mode 100644 index 000000000..30082876d --- /dev/null +++ b/libjava/gnu/java/security/Properties$1.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_Properties$1__ +#define __gnu_java_security_Properties$1__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class Properties; + class Properties$1; + } + } + } +} + +class gnu::java::security::Properties$1 : public ::java::lang::Object +{ + +public: // actually package-private + Properties$1(::gnu::java::security::Properties *); +public: + virtual ::java::lang::Object * run(); +public: // actually package-private + ::gnu::java::security::Properties * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_Properties$1__ diff --git a/libjava/gnu/java/security/Properties.h b/libjava/gnu/java/security/Properties.h new file mode 100644 index 000000000..d28d18e9c --- /dev/null +++ b/libjava/gnu/java/security/Properties.h @@ -0,0 +1,60 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_Properties__ +#define __gnu_java_security_Properties__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class Properties; + } + } + } +} + +class gnu::java::security::Properties : public ::java::lang::Object +{ + + Properties(); +public: + static ::java::lang::String * getProperty(::java::lang::String *); + static void setProperty(::java::lang::String *, ::java::lang::String *); + static jboolean isReproducible(); + static jboolean checkForWeakKeys(); + static jboolean doRSABlinding(); + static void setReproducible(jboolean); + static void setCheckForWeakKeys(jboolean); + static void setDoRSABlinding(jboolean); +private: + static ::gnu::java::security::Properties * instance(); + void init(); + void handleBooleanProperty(::java::lang::String *); + static ::java::util::logging::Logger * log; +public: + static ::java::lang::String * VERSION; + static ::java::lang::String * PROPERTIES_FILE; + static ::java::lang::String * REPRODUCIBLE_PRNG; + static ::java::lang::String * CHECK_WEAK_KEYS; + static ::java::lang::String * DO_RSA_BLINDING; +private: + static ::java::lang::String * TRUE; + static ::java::lang::String * FALSE; + static ::java::util::HashMap * props; + static ::gnu::java::security::Properties * singleton; + jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) reproducible; + jboolean checkForWeakKeys__; + jboolean doRSABlinding__; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_Properties__ diff --git a/libjava/gnu/java/security/Registry.h b/libjava/gnu/java/security/Registry.h new file mode 100644 index 000000000..164bb9f8e --- /dev/null +++ b/libjava/gnu/java/security/Registry.h @@ -0,0 +1,187 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_Registry__ +#define __gnu_java_security_Registry__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class Registry; + } + } + } +} + +class gnu::java::security::Registry : public ::java::lang::Object +{ + +public: + static ::java::lang::String * GNU_SECURITY; + static ::java::lang::String * GNU_CRYPTO; + static ::java::lang::String * GNU_SASL; + static ::java::lang::String * VERSION_STRING; + static ::java::lang::String * ANUBIS_CIPHER; + static ::java::lang::String * BLOWFISH_CIPHER; + static ::java::lang::String * DES_CIPHER; + static ::java::lang::String * KHAZAD_CIPHER; + static ::java::lang::String * RIJNDAEL_CIPHER; + static ::java::lang::String * SERPENT_CIPHER; + static ::java::lang::String * SQUARE_CIPHER; + static ::java::lang::String * TRIPLEDES_CIPHER; + static ::java::lang::String * TWOFISH_CIPHER; + static ::java::lang::String * CAST5_CIPHER; + static ::java::lang::String * NULL_CIPHER; + static ::java::lang::String * AES_CIPHER; + static ::java::lang::String * DESEDE_CIPHER; + static ::java::lang::String * CAST128_CIPHER; + static ::java::lang::String * CAST_128_CIPHER; + static ::java::lang::String * KWA_PREFIX; + static ::java::lang::String * AES_KWA; + static ::java::lang::String * AES128_KWA; + static ::java::lang::String * AES192_KWA; + static ::java::lang::String * AES256_KWA; + static ::java::lang::String * RIJNDAEL_KWA; + static ::java::lang::String * TRIPLEDES_KWA; + static ::java::lang::String * DESEDE_KWA; + static ::java::lang::String * WHIRLPOOL_HASH; + static ::java::lang::String * RIPEMD128_HASH; + static ::java::lang::String * RIPEMD160_HASH; + static ::java::lang::String * SHA160_HASH; + static ::java::lang::String * SHA256_HASH; + static ::java::lang::String * SHA384_HASH; + static ::java::lang::String * SHA512_HASH; + static ::java::lang::String * TIGER_HASH; + static ::java::lang::String * HAVAL_HASH; + static ::java::lang::String * MD5_HASH; + static ::java::lang::String * MD4_HASH; + static ::java::lang::String * MD2_HASH; + static ::java::lang::String * RIPEMD_128_HASH; + static ::java::lang::String * RIPEMD_160_HASH; + static ::java::lang::String * SHA_1_HASH; + static ::java::lang::String * SHA1_HASH; + static ::java::lang::String * SHA_HASH; + static ::java::lang::String * ECB_MODE; + static ::java::lang::String * CTR_MODE; + static ::java::lang::String * ICM_MODE; + static ::java::lang::String * OFB_MODE; + static ::java::lang::String * CBC_MODE; + static ::java::lang::String * CFB_MODE; + static ::java::lang::String * EAX_MODE; + static ::java::lang::String * PKCS5_PAD; + static ::java::lang::String * PKCS7_PAD; + static ::java::lang::String * TBC_PAD; + static ::java::lang::String * EME_PKCS1_V1_5_PAD; + static ::java::lang::String * SSL3_PAD; + static ::java::lang::String * TLS1_PAD; + static ::java::lang::String * ISO10126_PAD; + static ::java::lang::String * ARCFOUR_PRNG; + static ::java::lang::String * RC4_PRNG; + static ::java::lang::String * ICM_PRNG; + static ::java::lang::String * MD_PRNG; + static ::java::lang::String * UMAC_PRNG; + static ::java::lang::String * PBKDF2_PRNG_PREFIX; + static ::java::lang::String * CSPRNG_PRNG; + static ::java::lang::String * FORTUNA_PRNG; + static ::java::lang::String * FORTUNA_GENERATOR_PRNG; + static ::java::lang::String * DSS_KPG; + static ::java::lang::String * RSA_KPG; + static ::java::lang::String * DH_KPG; + static ::java::lang::String * SRP_KPG; + static ::java::lang::String * DSA_KPG; + static ::java::lang::String * DSS_SIG; + static ::java::lang::String * RSA_SIG_PREFIX; + static ::java::lang::String * RSA_PSS_ENCODING; + static ::java::lang::String * RSA_PSS_SIG; + static ::java::lang::String * RSA_PKCS1_V1_5_ENCODING; + static ::java::lang::String * RSA_PKCS1_V1_5_SIG; + static ::java::lang::String * DSA_SIG; + static ::java::lang::String * DH_KA; + static ::java::lang::String * ELGAMAL_KA; + static ::java::lang::String * SRP6_KA; + static ::java::lang::String * SRP_SASL_KA; + static ::java::lang::String * SRP_TLS_KA; + static ::java::lang::String * HMAC_NAME_PREFIX; + static ::java::lang::String * OMAC_PREFIX; + static ::java::lang::String * UHASH32; + static ::java::lang::String * UMAC32; + static ::java::lang::String * TMMH16; + static ::java::lang::String * RAW_ENCODING; + static ::java::lang::String * X509_ENCODING; + static ::java::lang::String * PKCS8_ENCODING; + static ::java::lang::String * ASN1_ENCODING; + static ::java::lang::String * RAW_ENCODING_SHORT_NAME; + static ::java::lang::String * X509_ENCODING_SORT_NAME; + static ::java::lang::String * PKCS8_ENCODING_SHORT_NAME; + static ::java::lang::String * ASN1_ENCODING_SHORT_NAME; + static const jint RAW_ENCODING_ID = 1; + static const jint X509_ENCODING_ID = 2; + static const jint PKCS8_ENCODING_ID = 3; + static const jint ASN1_ENCODING_ID = 4; + static ::java::lang::String * DSA_OID_STRING; + static ::java::lang::String * RSA_OID_STRING; + static ::java::lang::String * DH_OID_STRING; + static JArray< jbyte > * MAGIC_RAW_DSS_PUBLIC_KEY; + static JArray< jbyte > * MAGIC_RAW_DSS_PRIVATE_KEY; + static JArray< jbyte > * MAGIC_RAW_DSS_SIGNATURE; + static JArray< jbyte > * MAGIC_RAW_RSA_PUBLIC_KEY; + static JArray< jbyte > * MAGIC_RAW_RSA_PRIVATE_KEY; + static JArray< jbyte > * MAGIC_RAW_RSA_PSS_SIGNATURE; + static JArray< jbyte > * MAGIC_RAW_RSA_PKCS1V1_5_SIGNATURE; + static JArray< jbyte > * MAGIC_RAW_DH_PUBLIC_KEY; + static JArray< jbyte > * MAGIC_RAW_DH_PRIVATE_KEY; + static JArray< jbyte > * MAGIC_RAW_SRP_PUBLIC_KEY; + static JArray< jbyte > * MAGIC_RAW_SRP_PRIVATE_KEY; + static ::java::lang::String * SASL_PREFIX; + static ::java::lang::String * SASL_USERNAME; + static ::java::lang::String * SASL_PASSWORD; + static ::java::lang::String * SASL_AUTH_INFO_PROVIDER_PKGS; + static ::java::lang::String * SASL_AUTHORISATION_ID; + static ::java::lang::String * SASL_PROTOCOL; + static ::java::lang::String * SASL_SERVER_NAME; + static ::java::lang::String * SASL_CALLBACK_HANDLER; + static ::java::lang::String * SASL_CHANNEL_BINDING; + static const jint SASL_ONE_BYTE_MAX_LIMIT = 255; + static const jint SASL_TWO_BYTE_MAX_LIMIT = 65535; + static const jint SASL_FOUR_BYTE_MAX_LIMIT = 2147483383; + static const jint SASL_BUFFER_MAX_LIMIT = 2147483643; + static ::java::lang::String * SASL_ANONYMOUS_MECHANISM; + static ::java::lang::String * SASL_CRAM_MD5_MECHANISM; + static ::java::lang::String * SASL_PLAIN_MECHANISM; + static ::java::lang::String * SASL_SRP_MECHANISM; + static ::java::lang::String * SASL_HMAC_MD5_IALG; + static ::java::lang::String * SASL_HMAC_SHA_IALG; + static ::java::lang::String * QOP_AUTH; + static ::java::lang::String * QOP_AUTH_INT; + static ::java::lang::String * QOP_AUTH_CONF; + static ::java::lang::String * STRENGTH_HIGH; + static ::java::lang::String * STRENGTH_MEDIUM; + static ::java::lang::String * STRENGTH_LOW; + static ::java::lang::String * SERVER_AUTH_TRUE; + static ::java::lang::String * SERVER_AUTH_FALSE; + static ::java::lang::String * REUSE_TRUE; + static ::java::lang::String * REUSE_FALSE; + static JArray< jbyte > * GKR_MAGIC; + static const jint GKR_PRIVATE_KEYS = 1; + static const jint GKR_PUBLIC_CREDENTIALS = 2; + static const jint GKR_CERTIFICATES = 4; + static const jint GKR_HMAC_MD5_128 = 0; + static const jint GKR_HMAC_SHA_160 = 1; + static const jint GKR_HMAC_MD5_96 = 2; + static const jint GKR_HMAC_SHA_96 = 3; + static const jint GKR_CIPHER_AES_128_OFB = 0; + static const jint GKR_CIPHER_AES_128_CBC = 1; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_Registry__ diff --git a/libjava/gnu/java/security/Requires.h b/libjava/gnu/java/security/Requires.h new file mode 100644 index 000000000..879a873a2 --- /dev/null +++ b/libjava/gnu/java/security/Requires.h @@ -0,0 +1,35 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_Requires__ +#define __gnu_java_security_Requires__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class Requires; + } + } + } +} + +class gnu::java::security::Requires : public ::java::lang::Object +{ + +public: + virtual ::java::lang::Class * permissionClass() = 0; + virtual ::java::lang::String * target() = 0; + virtual ::java::lang::String * action() = 0; + virtual ::java::lang::Class * annotationType() = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_Requires__ diff --git a/libjava/gnu/java/security/action/GetPropertyAction.h b/libjava/gnu/java/security/action/GetPropertyAction.h new file mode 100644 index 000000000..e3ab18316 --- /dev/null +++ b/libjava/gnu/java/security/action/GetPropertyAction.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_action_GetPropertyAction__ +#define __gnu_java_security_action_GetPropertyAction__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace action + { + class GetPropertyAction; + } + } + } + } +} + +class gnu::java::security::action::GetPropertyAction : public ::java::lang::Object +{ + +public: + GetPropertyAction(); + GetPropertyAction(::java::lang::String *); + GetPropertyAction(::java::lang::String *, ::java::lang::String *); + virtual ::java::lang::String * GetPropertyAction$run(); + virtual ::gnu::java::security::action::GetPropertyAction * setParameters(::java::lang::String *); + virtual ::gnu::java::security::action::GetPropertyAction * setParameters(::java::lang::String *, ::java::lang::String *); + virtual ::java::lang::Object * run(); +public: // actually package-private + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name; + ::java::lang::String * value; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_action_GetPropertyAction__ diff --git a/libjava/gnu/java/security/action/GetSecurityPropertyAction.h b/libjava/gnu/java/security/action/GetSecurityPropertyAction.h new file mode 100644 index 000000000..b10ee5d31 --- /dev/null +++ b/libjava/gnu/java/security/action/GetSecurityPropertyAction.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_action_GetSecurityPropertyAction__ +#define __gnu_java_security_action_GetSecurityPropertyAction__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace action + { + class GetSecurityPropertyAction; + } + } + } + } +} + +class gnu::java::security::action::GetSecurityPropertyAction : public ::java::lang::Object +{ + +public: + GetSecurityPropertyAction(); + GetSecurityPropertyAction(::java::lang::String *); + GetSecurityPropertyAction(::java::lang::String *, ::java::lang::String *); + virtual ::gnu::java::security::action::GetSecurityPropertyAction * setParameters(::java::lang::String *); + virtual ::gnu::java::security::action::GetSecurityPropertyAction * setParameters(::java::lang::String *, ::java::lang::String *); + virtual ::java::lang::String * GetSecurityPropertyAction$run(); + virtual ::java::lang::Object * run(); +private: + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name; + ::java::lang::String * value; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_action_GetSecurityPropertyAction__ diff --git a/libjava/gnu/java/security/action/SetAccessibleAction.h b/libjava/gnu/java/security/action/SetAccessibleAction.h new file mode 100644 index 000000000..312a61616 --- /dev/null +++ b/libjava/gnu/java/security/action/SetAccessibleAction.h @@ -0,0 +1,41 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_action_SetAccessibleAction__ +#define __gnu_java_security_action_SetAccessibleAction__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace action + { + class SetAccessibleAction; + } + } + } + } +} + +class gnu::java::security::action::SetAccessibleAction : public ::java::lang::Object +{ + +public: + SetAccessibleAction(); + SetAccessibleAction(::java::lang::reflect::AccessibleObject *); + virtual ::java::lang::Object * run(); + virtual ::gnu::java::security::action::SetAccessibleAction * setMember(::java::lang::reflect::AccessibleObject *); +public: // actually package-private + ::java::lang::reflect::AccessibleObject * __attribute__((aligned(__alignof__( ::java::lang::Object)))) member; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_action_SetAccessibleAction__ diff --git a/libjava/gnu/java/security/ber/BER.h b/libjava/gnu/java/security/ber/BER.h new file mode 100644 index 000000000..ab1a66cce --- /dev/null +++ b/libjava/gnu/java/security/ber/BER.h @@ -0,0 +1,36 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_ber_BER__ +#define __gnu_java_security_ber_BER__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace ber + { + class BER; + class BERValue; + } + } + } + } +} + +class gnu::java::security::ber::BER : public ::java::lang::Object +{ + +public: + static ::gnu::java::security::ber::BERValue * END_OF_SEQUENCE; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_ber_BER__ diff --git a/libjava/gnu/java/security/ber/BEREncodingException.h b/libjava/gnu/java/security/ber/BEREncodingException.h new file mode 100644 index 000000000..8eae41ecd --- /dev/null +++ b/libjava/gnu/java/security/ber/BEREncodingException.h @@ -0,0 +1,36 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_ber_BEREncodingException__ +#define __gnu_java_security_ber_BEREncodingException__ + +#pragma interface + +#include <gnu/java/security/der/DEREncodingException.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace ber + { + class BEREncodingException; + } + } + } + } +} + +class gnu::java::security::ber::BEREncodingException : public ::gnu::java::security::der::DEREncodingException +{ + +public: + BEREncodingException(); + BEREncodingException(::java::lang::String *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_ber_BEREncodingException__ diff --git a/libjava/gnu/java/security/ber/BERReader.h b/libjava/gnu/java/security/ber/BERReader.h new file mode 100644 index 000000000..06c0242ce --- /dev/null +++ b/libjava/gnu/java/security/ber/BERReader.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_ber_BERReader__ +#define __gnu_java_security_ber_BERReader__ + +#pragma interface + +#include <gnu/java/security/der/DERReader.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace ber + { + class BERReader; + } + namespace der + { + class DERValue; + } + } + } + } +} + +class gnu::java::security::ber::BERReader : public ::gnu::java::security::der::DERReader +{ + +public: + BERReader(JArray< jbyte > *); + BERReader(JArray< jbyte > *, jint, jint); + BERReader(::java::io::InputStream *); + virtual ::gnu::java::security::der::DERValue * read(); + virtual jint peek(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_ber_BERReader__ diff --git a/libjava/gnu/java/security/ber/BERValue.h b/libjava/gnu/java/security/ber/BERValue.h new file mode 100644 index 000000000..34c3e7a80 --- /dev/null +++ b/libjava/gnu/java/security/ber/BERValue.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_ber_BERValue__ +#define __gnu_java_security_ber_BERValue__ + +#pragma interface + +#include <gnu/java/security/der/DERValue.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace ber + { + class BERValue; + } + namespace der + { + class DERValue; + } + } + } + } +} + +class gnu::java::security::ber::BERValue : public ::gnu::java::security::der::DERValue +{ + +public: + BERValue(jint, ::java::lang::Object *, JArray< jbyte > *); + BERValue(jint, jint, ::java::lang::Object *, JArray< jbyte > *); + BERValue(jint, ::java::lang::Object *); + static jboolean isIndefinite(::gnu::java::security::der::DERValue *); + virtual jboolean getIndefinite(); + virtual jint getLength(); +private: + jboolean __attribute__((aligned(__alignof__( ::gnu::java::security::der::DERValue)))) indefinite; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_ber_BERValue__ diff --git a/libjava/gnu/java/security/der/BitString.h b/libjava/gnu/java/security/der/BitString.h new file mode 100644 index 000000000..1bc7cbd60 --- /dev/null +++ b/libjava/gnu/java/security/der/BitString.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_der_BitString__ +#define __gnu_java_security_der_BitString__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace der + { + class BitString; + } + } + } + } +} + +class gnu::java::security::der::BitString : public ::java::lang::Object +{ + +public: + BitString(JArray< jbyte > *, jint, jboolean); + BitString(JArray< jbyte > *, jint, jint, jint, jboolean); + BitString(JArray< jbyte > *, jint, jint, jint); + BitString(JArray< jbyte > *, jint); + BitString(JArray< jbyte > *, jint, jint); + BitString(JArray< jbyte > *); + virtual JArray< jbyte > * toByteArray(); + virtual JArray< jbyte > * getShiftedByteArray(); + virtual jint getIgnoredBits(); + virtual jint size(); + virtual JArray< jboolean > * toBooleanArray(); + virtual ::java::lang::Object * clone(); + virtual jint compareTo(::java::lang::Object *); + virtual jint hashCode(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) bytes; + JArray< jbyte > * externBytes; + jint ignoredBits; + JArray< jboolean > * boolVal; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_der_BitString__ diff --git a/libjava/gnu/java/security/der/DER.h b/libjava/gnu/java/security/der/DER.h new file mode 100644 index 000000000..1b59badbf --- /dev/null +++ b/libjava/gnu/java/security/der/DER.h @@ -0,0 +1,65 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_der_DER__ +#define __gnu_java_security_der_DER__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace der + { + class DER; + } + } + } + } +} + +class gnu::java::security::der::DER : public ::java::lang::Object +{ + +public: + static const jint UNIVERSAL = 0; + static const jint APPLICATION = 64; + static const jint CONTEXT = 128; + static const jint PRIVATE = 192; + static const jint CONSTRUCTED = 32; + static const jint ANY = 0; + static const jint BOOLEAN = 1; + static const jint INTEGER = 2; + static const jint BIT_STRING = 3; + static const jint OCTET_STRING = 4; + static const jint NULL = 5; + static const jint OBJECT_IDENTIFIER = 6; + static const jint REAL = 9; + static const jint ENUMERATED = 10; + static const jint RELATIVE_OID = 13; + static const jint SEQUENCE = 16; + static const jint SET = 17; + static ::java::lang::Object * CONSTRUCTED_VALUE; + static const jint NUMERIC_STRING = 18; + static const jint PRINTABLE_STRING = 19; + static const jint T61_STRING = 20; + static const jint VIDEOTEX_STRING = 21; + static const jint IA5_STRING = 22; + static const jint GRAPHIC_STRING = 25; + static const jint ISO646_STRING = 26; + static const jint GENERAL_STRING = 27; + static const jint UTF8_STRING = 12; + static const jint UNIVERSAL_STRING = 28; + static const jint BMP_STRING = 30; + static const jint UTC_TIME = 23; + static const jint GENERALIZED_TIME = 24; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_der_DER__ diff --git a/libjava/gnu/java/security/der/DEREncodingException.h b/libjava/gnu/java/security/der/DEREncodingException.h new file mode 100644 index 000000000..dc417bf76 --- /dev/null +++ b/libjava/gnu/java/security/der/DEREncodingException.h @@ -0,0 +1,36 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_der_DEREncodingException__ +#define __gnu_java_security_der_DEREncodingException__ + +#pragma interface + +#include <java/io/IOException.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace der + { + class DEREncodingException; + } + } + } + } +} + +class gnu::java::security::der::DEREncodingException : public ::java::io::IOException +{ + +public: + DEREncodingException(); + DEREncodingException(::java::lang::String *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_der_DEREncodingException__ diff --git a/libjava/gnu/java/security/der/DERReader.h b/libjava/gnu/java/security/der/DERReader.h new file mode 100644 index 000000000..7e59f85db --- /dev/null +++ b/libjava/gnu/java/security/der/DERReader.h @@ -0,0 +1,56 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_der_DERReader__ +#define __gnu_java_security_der_DERReader__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace der + { + class DERReader; + class DERValue; + } + } + } + } +} + +class gnu::java::security::der::DERReader : public ::java::lang::Object +{ + +public: + DERReader(JArray< jbyte > *); + DERReader(JArray< jbyte > *, jint, jint); + DERReader(::java::io::InputStream *); + static ::gnu::java::security::der::DERValue * read(JArray< jbyte > *); + virtual void skip(jint); + virtual ::gnu::java::security::der::DERValue * read(); +public: // actually protected + virtual jint readLength(); +private: + ::java::lang::Object * readUniversal(jint, jint); + static ::java::lang::String * makeString(jint, JArray< jbyte > *); + static ::java::lang::String * fromIso88591(JArray< jbyte > *); + static ::java::lang::String * fromUtf16Be(JArray< jbyte > *); + static ::java::lang::String * fromUtf8(JArray< jbyte > *); + ::java::util::Date * makeTime(jint, JArray< jbyte > *); +public: // actually protected + ::java::io::InputStream * __attribute__((aligned(__alignof__( ::java::lang::Object)))) in; + ::java::io::ByteArrayOutputStream * encBuf; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_der_DERReader__ diff --git a/libjava/gnu/java/security/der/DERValue.h b/libjava/gnu/java/security/der/DERValue.h new file mode 100644 index 000000000..a9572543b --- /dev/null +++ b/libjava/gnu/java/security/der/DERValue.h @@ -0,0 +1,56 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_der_DERValue__ +#define __gnu_java_security_der_DERValue__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace der + { + class DERValue; + } + } + } + } +} + +class gnu::java::security::der::DERValue : public ::java::lang::Object +{ + +public: + DERValue(jint, jint, ::java::lang::Object *, JArray< jbyte > *); + DERValue(jint, ::java::lang::Object *); + virtual jint getExternalTag(); + virtual jint getTag(); + virtual jint getTagClass(); + virtual jboolean isConstructed(); + virtual jint getLength(); + virtual ::java::lang::Object * getValue(); + virtual ::java::lang::Object * getValueAs(jint); + virtual JArray< jbyte > * getEncoded(); + virtual jint getEncodedLength(); + virtual ::java::lang::String * toString(); +private: + jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) tagClass; + jboolean constructed; + jint tag; + jint length; + ::java::lang::Object * value; + JArray< jbyte > * encoded; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_der_DERValue__ diff --git a/libjava/gnu/java/security/der/DERWriter.h b/libjava/gnu/java/security/der/DERWriter.h new file mode 100644 index 000000000..a7ea52c78 --- /dev/null +++ b/libjava/gnu/java/security/der/DERWriter.h @@ -0,0 +1,64 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_der_DERWriter__ +#define __gnu_java_security_der_DERWriter__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace der + { + class BitString; + class DERValue; + class DERWriter; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::der::DERWriter : public ::java::lang::Object +{ + + DERWriter(); +public: + static jint write(::java::io::OutputStream *, ::gnu::java::security::der::DERValue *); + static jint definiteEncodingSize(jint); +private: + static jint writeBoolean(::java::io::OutputStream *, ::java::lang::Boolean *); + static jint writeInteger(::java::io::OutputStream *, ::java::math::BigInteger *); + static jint writeSequence(::java::io::OutputStream *, ::java::util::List *); + static jint writeSet(::java::io::OutputStream *, ::java::util::Set *); + static jint writeOID(::java::io::OutputStream *, ::gnu::java::security::OID *); + static jint writeBitString(::java::io::OutputStream *, ::gnu::java::security::der::BitString *); + static jint writeString(::java::io::OutputStream *, jint, ::java::lang::String *); + static JArray< jbyte > * toIso88591(::java::lang::String *); + static JArray< jbyte > * toUtf16Be(::java::lang::String *); + static JArray< jbyte > * toUtf8(::java::lang::String *); + static jint writeDate(::java::io::OutputStream *, jint, ::java::util::Date *); +public: // actually package-private + static void writeLength(::java::io::OutputStream *, jint); +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_der_DERWriter__ diff --git a/libjava/gnu/java/security/hash/BaseHash.h b/libjava/gnu/java/security/hash/BaseHash.h new file mode 100644 index 000000000..f2ec07550 --- /dev/null +++ b/libjava/gnu/java/security/hash/BaseHash.h @@ -0,0 +1,59 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_BaseHash__ +#define __gnu_java_security_hash_BaseHash__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class BaseHash; + } + } + } + } +} + +class gnu::java::security::hash::BaseHash : public ::java::lang::Object +{ + +public: // actually protected + BaseHash(::java::lang::String *, jint, jint); +public: + virtual ::java::lang::String * name(); + virtual jint hashSize(); + virtual jint blockSize(); + virtual void update(jbyte); + virtual void update(JArray< jbyte > *); + virtual void update(JArray< jbyte > *, jint, jint); + virtual JArray< jbyte > * digest(); + virtual void reset(); + virtual ::java::lang::Object * clone() = 0; + virtual jboolean selfTest() = 0; +public: // actually protected + virtual JArray< jbyte > * padBuffer() = 0; + virtual JArray< jbyte > * getResult() = 0; + virtual void resetContext() = 0; + virtual void transform(JArray< jbyte > *, jint) = 0; + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__; + jint hashSize__; + jint blockSize__; + jlong count; + JArray< jbyte > * buffer; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_BaseHash__ diff --git a/libjava/gnu/java/security/hash/HashFactory.h b/libjava/gnu/java/security/hash/HashFactory.h new file mode 100644 index 000000000..265d03a42 --- /dev/null +++ b/libjava/gnu/java/security/hash/HashFactory.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_HashFactory__ +#define __gnu_java_security_hash_HashFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class HashFactory; + class IMessageDigest; + } + } + } + } +} + +class gnu::java::security::hash::HashFactory : public ::java::lang::Object +{ + + HashFactory(); +public: + static ::gnu::java::security::hash::IMessageDigest * getInstance(::java::lang::String *); + static ::java::util::Set * getNames(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_HashFactory__ diff --git a/libjava/gnu/java/security/hash/Haval.h b/libjava/gnu/java/security/hash/Haval.h new file mode 100644 index 000000000..648a293ca --- /dev/null +++ b/libjava/gnu/java/security/hash/Haval.h @@ -0,0 +1,86 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_Haval__ +#define __gnu_java_security_hash_Haval__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Haval; + } + } + } + } +} + +class gnu::java::security::hash::Haval : public ::gnu::java::security::hash::BaseHash +{ + +public: + Haval(); + Haval(jint); + Haval(jint, jint); +private: + Haval(::gnu::java::security::hash::Haval *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + void tailorDigestBits(); + jint FF1(jint, jint, jint, jint, jint, jint, jint, jint, jint); + jint FF2(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint); + jint FF3(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint); + jint FF4(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint); + jint FF5(jint, jint, jint, jint, jint, jint, jint, jint, jint, jint); + jint f1(jint, jint, jint, jint, jint, jint, jint); + jint f2(jint, jint, jint, jint, jint, jint, jint); + jint f3(jint, jint, jint, jint, jint, jint, jint); + jint f4(jint, jint, jint, jint, jint, jint, jint); + jint f5(jint, jint, jint, jint, jint, jint, jint); +public: + static const jint HAVAL_VERSION = 1; + static const jint HAVAL_128_BIT = 16; + static const jint HAVAL_160_BIT = 20; + static const jint HAVAL_192_BIT = 24; + static const jint HAVAL_224_BIT = 28; + static const jint HAVAL_256_BIT = 32; + static const jint HAVAL_3_ROUND = 3; + static const jint HAVAL_4_ROUND = 4; + static const jint HAVAL_5_ROUND = 5; +private: + static const jint BLOCK_SIZE = 128; + static ::java::lang::String * DIGEST0; + static ::java::lang::Boolean * valid; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) rounds; + jint h0; + jint h1; + jint h2; + jint h3; + jint h4; + jint h5; + jint h6; + jint h7; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_Haval__ diff --git a/libjava/gnu/java/security/hash/IMessageDigest.h b/libjava/gnu/java/security/hash/IMessageDigest.h new file mode 100644 index 000000000..044a20270 --- /dev/null +++ b/libjava/gnu/java/security/hash/IMessageDigest.h @@ -0,0 +1,46 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_IMessageDigest__ +#define __gnu_java_security_hash_IMessageDigest__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + } + } + } +} + +class gnu::java::security::hash::IMessageDigest : public ::java::lang::Object +{ + +public: + virtual ::java::lang::String * name() = 0; + virtual jint hashSize() = 0; + virtual jint blockSize() = 0; + virtual void update(jbyte) = 0; + virtual void update(JArray< jbyte > *) = 0; + virtual void update(JArray< jbyte > *, jint, jint) = 0; + virtual JArray< jbyte > * digest() = 0; + virtual void reset() = 0; + virtual jboolean selfTest() = 0; + virtual ::java::lang::Object * clone() = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_hash_IMessageDigest__ diff --git a/libjava/gnu/java/security/hash/MD2.h b/libjava/gnu/java/security/hash/MD2.h new file mode 100644 index 000000000..f8a735a74 --- /dev/null +++ b/libjava/gnu/java/security/hash/MD2.h @@ -0,0 +1,60 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_MD2__ +#define __gnu_java_security_hash_MD2__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class MD2; + } + } + } + } +} + +class gnu::java::security::hash::MD2 : public ::gnu::java::security::hash::BaseHash +{ + +public: + MD2(); +private: + MD2(::gnu::java::security::hash::MD2 *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +public: // actually protected + virtual JArray< jbyte > * padBuffer(); + virtual void transform(JArray< jbyte > *, jint); +private: + void encryptBlock(JArray< jbyte > *, jint); + void updateCheckSumAndEncryptBlock(JArray< jbyte > *, jint); + static const jint DIGEST_LENGTH = 16; + static const jint BLOCK_LENGTH = 16; + static JArray< jbyte > * PI; + static ::java::lang::String * DIGEST0; + static ::java::lang::Boolean * valid; + JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) checksum; + JArray< jbyte > * work; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_MD2__ diff --git a/libjava/gnu/java/security/hash/MD4.h b/libjava/gnu/java/security/hash/MD4.h new file mode 100644 index 000000000..64ea5922a --- /dev/null +++ b/libjava/gnu/java/security/hash/MD4.h @@ -0,0 +1,63 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_MD4__ +#define __gnu_java_security_hash_MD4__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class MD4; + } + } + } + } +} + +class gnu::java::security::hash::MD4 : public ::gnu::java::security::hash::BaseHash +{ + +public: + MD4(); +private: + MD4(::gnu::java::security::hash::MD4 *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +public: // actually protected + virtual JArray< jbyte > * padBuffer(); + virtual void transform(JArray< jbyte > *, jint); +private: + static const jint DIGEST_LENGTH = 16; + static const jint BLOCK_LENGTH = 64; + static const jint A = 1732584193; + static const jint B = -271733879; + static const jint C = -1732584194; + static const jint D = 271733878; + static ::java::lang::String * DIGEST0; + static ::java::lang::Boolean * valid; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) a; + jint b; + jint c; + jint d; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_MD4__ diff --git a/libjava/gnu/java/security/hash/MD5.h b/libjava/gnu/java/security/hash/MD5.h new file mode 100644 index 000000000..8f6376efe --- /dev/null +++ b/libjava/gnu/java/security/hash/MD5.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_MD5__ +#define __gnu_java_security_hash_MD5__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class MD5; + } + } + } + } +} + +class gnu::java::security::hash::MD5 : public ::gnu::java::security::hash::BaseHash +{ + +public: + MD5(); +private: + MD5(::gnu::java::security::hash::MD5 *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + static const jint BLOCK_SIZE = 64; + static ::java::lang::String * DIGEST0; + static ::java::lang::Boolean * valid; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0; + jint h1; + jint h2; + jint h3; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_MD5__ diff --git a/libjava/gnu/java/security/hash/RipeMD128.h b/libjava/gnu/java/security/hash/RipeMD128.h new file mode 100644 index 000000000..e2d3274d9 --- /dev/null +++ b/libjava/gnu/java/security/hash/RipeMD128.h @@ -0,0 +1,62 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_RipeMD128__ +#define __gnu_java_security_hash_RipeMD128__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class RipeMD128; + } + } + } + } +} + +class gnu::java::security::hash::RipeMD128 : public ::gnu::java::security::hash::BaseHash +{ + +public: + RipeMD128(); +private: + RipeMD128(::gnu::java::security::hash::RipeMD128 *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + static const jint BLOCK_SIZE = 64; + static ::java::lang::String * DIGEST0; + static JArray< jint > * R; + static JArray< jint > * Rp; + static JArray< jint > * S; + static JArray< jint > * Sp; + static ::java::lang::Boolean * valid; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0; + jint h1; + jint h2; + jint h3; + JArray< jint > * X; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_RipeMD128__ diff --git a/libjava/gnu/java/security/hash/RipeMD160.h b/libjava/gnu/java/security/hash/RipeMD160.h new file mode 100644 index 000000000..f24e3fbd2 --- /dev/null +++ b/libjava/gnu/java/security/hash/RipeMD160.h @@ -0,0 +1,63 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_RipeMD160__ +#define __gnu_java_security_hash_RipeMD160__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class RipeMD160; + } + } + } + } +} + +class gnu::java::security::hash::RipeMD160 : public ::gnu::java::security::hash::BaseHash +{ + +public: + RipeMD160(); +private: + RipeMD160(::gnu::java::security::hash::RipeMD160 *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + static const jint BLOCK_SIZE = 64; + static ::java::lang::String * DIGEST0; + static JArray< jint > * R; + static JArray< jint > * Rp; + static JArray< jint > * S; + static JArray< jint > * Sp; + static ::java::lang::Boolean * valid; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0; + jint h1; + jint h2; + jint h3; + jint h4; + JArray< jint > * X; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_RipeMD160__ diff --git a/libjava/gnu/java/security/hash/Sha160.h b/libjava/gnu/java/security/hash/Sha160.h new file mode 100644 index 000000000..96f261d5d --- /dev/null +++ b/libjava/gnu/java/security/hash/Sha160.h @@ -0,0 +1,61 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_Sha160__ +#define __gnu_java_security_hash_Sha160__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Sha160; + } + } + } + } +} + +class gnu::java::security::hash::Sha160 : public ::gnu::java::security::hash::BaseHash +{ + +public: + Sha160(); +private: + Sha160(::gnu::java::security::hash::Sha160 *); +public: + static JArray< jint > * G(jint, jint, jint, jint, jint, JArray< jbyte > *, jint); + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + static JArray< jint > * sha(jint, jint, jint, jint, jint, JArray< jbyte > *, jint); + static const jint BLOCK_SIZE = 64; + static ::java::lang::String * DIGEST0; + static JArray< jint > * w; + static ::java::lang::Boolean * valid; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0; + jint h1; + jint h2; + jint h3; + jint h4; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_Sha160__ diff --git a/libjava/gnu/java/security/hash/Sha256.h b/libjava/gnu/java/security/hash/Sha256.h new file mode 100644 index 000000000..628a43af1 --- /dev/null +++ b/libjava/gnu/java/security/hash/Sha256.h @@ -0,0 +1,65 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_Sha256__ +#define __gnu_java_security_hash_Sha256__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Sha256; + } + } + } + } +} + +class gnu::java::security::hash::Sha256 : public ::gnu::java::security::hash::BaseHash +{ + +public: + Sha256(); +private: + Sha256(::gnu::java::security::hash::Sha256 *); +public: + static JArray< jint > * G(jint, jint, jint, jint, jint, jint, jint, jint, JArray< jbyte > *, jint); + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + static JArray< jint > * sha(jint, jint, jint, jint, jint, jint, jint, jint, JArray< jbyte > *, jint); + static JArray< jint > * k; + static const jint BLOCK_SIZE = 64; + static ::java::lang::String * DIGEST0; + static JArray< jint > * w; + static ::java::lang::Boolean * valid; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0; + jint h1; + jint h2; + jint h3; + jint h4; + jint h5; + jint h6; + jint h7; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_Sha256__ diff --git a/libjava/gnu/java/security/hash/Sha384.h b/libjava/gnu/java/security/hash/Sha384.h new file mode 100644 index 000000000..503da66b5 --- /dev/null +++ b/libjava/gnu/java/security/hash/Sha384.h @@ -0,0 +1,65 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_Sha384__ +#define __gnu_java_security_hash_Sha384__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Sha384; + } + } + } + } +} + +class gnu::java::security::hash::Sha384 : public ::gnu::java::security::hash::BaseHash +{ + +public: + Sha384(); +private: + Sha384(::gnu::java::security::hash::Sha384 *); +public: + static JArray< jlong > * G(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint); + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + static JArray< jlong > * sha(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint); + static JArray< jlong > * k; + static const jint BLOCK_SIZE = 128; + static ::java::lang::String * DIGEST0; + static JArray< jlong > * w; + static ::java::lang::Boolean * valid; + jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0; + jlong h1; + jlong h2; + jlong h3; + jlong h4; + jlong h5; + jlong h6; + jlong h7; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_Sha384__ diff --git a/libjava/gnu/java/security/hash/Sha512.h b/libjava/gnu/java/security/hash/Sha512.h new file mode 100644 index 000000000..764ed7869 --- /dev/null +++ b/libjava/gnu/java/security/hash/Sha512.h @@ -0,0 +1,65 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_Sha512__ +#define __gnu_java_security_hash_Sha512__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Sha512; + } + } + } + } +} + +class gnu::java::security::hash::Sha512 : public ::gnu::java::security::hash::BaseHash +{ + +public: + Sha512(); +private: + Sha512(::gnu::java::security::hash::Sha512 *); +public: + static JArray< jlong > * G(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint); + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void transform(JArray< jbyte > *, jint); + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); +public: + virtual jboolean selfTest(); +private: + static JArray< jlong > * sha(jlong, jlong, jlong, jlong, jlong, jlong, jlong, jlong, JArray< jbyte > *, jint); + static JArray< jlong > * k; + static const jint BLOCK_SIZE = 128; + static ::java::lang::String * DIGEST0; + static JArray< jlong > * w; + static ::java::lang::Boolean * valid; + jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) h0; + jlong h1; + jlong h2; + jlong h3; + jlong h4; + jlong h5; + jlong h6; + jlong h7; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_Sha512__ diff --git a/libjava/gnu/java/security/hash/Tiger.h b/libjava/gnu/java/security/hash/Tiger.h new file mode 100644 index 000000000..93136ce90 --- /dev/null +++ b/libjava/gnu/java/security/hash/Tiger.h @@ -0,0 +1,63 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_Tiger__ +#define __gnu_java_security_hash_Tiger__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Tiger; + } + } + } + } +} + +class gnu::java::security::hash::Tiger : public ::gnu::java::security::hash::BaseHash +{ + +public: + Tiger(); +private: + Tiger(::gnu::java::security::hash::Tiger *); +public: + virtual ::java::lang::Object * clone(); + virtual jboolean selfTest(); +public: // actually protected + virtual JArray< jbyte > * padBuffer(); + virtual JArray< jbyte > * getResult(); + virtual void resetContext(); + virtual void transform(JArray< jbyte > *, jint); +private: + static const jint HASH_SIZE = 24; + static const jint BLOCK_SIZE = 64; + static ::java::lang::String * DIGEST0; + static const jlong A = 81985529216486895LL; + static const jlong B = -81985529216486896LL; + static const jlong C = -1110518062304271993LL; + static JArray< jlong > * T1; + static JArray< jlong > * T2; + static JArray< jlong > * T3; + static JArray< jlong > * T4; + static ::java::lang::Boolean * valid; + jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) a; + jlong b; + jlong c; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_Tiger__ diff --git a/libjava/gnu/java/security/hash/Whirlpool.h b/libjava/gnu/java/security/hash/Whirlpool.h new file mode 100644 index 000000000..436ff6b70 --- /dev/null +++ b/libjava/gnu/java/security/hash/Whirlpool.h @@ -0,0 +1,113 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_hash_Whirlpool__ +#define __gnu_java_security_hash_Whirlpool__ + +#pragma interface + +#include <gnu/java/security/hash/BaseHash.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Whirlpool; + } + } + } + } +} + +class gnu::java::security::hash::Whirlpool : public ::gnu::java::security::hash::BaseHash +{ + +public: + Whirlpool(); +private: + Whirlpool(::gnu::java::security::hash::Whirlpool *); +public: + ::java::lang::Object * clone(); +public: // actually protected + void transform(JArray< jbyte > *, jint); + JArray< jbyte > * padBuffer(); + JArray< jbyte > * getResult(); + void resetContext(); +public: + jboolean selfTest(); +private: + static ::java::util::logging::Logger * log; + static const jint BLOCK_SIZE = 64; + static ::java::lang::String * DIGEST0; + static const jint R = 10; + static ::java::lang::String * S_box; + static JArray< jlong > * T0; + static JArray< jlong > * T1; + static JArray< jlong > * T2; + static JArray< jlong > * T3; + static JArray< jlong > * T4; + static JArray< jlong > * T5; + static JArray< jlong > * T6; + static JArray< jlong > * T7; + static JArray< jlong > * rc; + static ::java::lang::Boolean * valid; + jlong __attribute__((aligned(__alignof__( ::gnu::java::security::hash::BaseHash)))) H0; + jlong H1; + jlong H2; + jlong H3; + jlong H4; + jlong H5; + jlong H6; + jlong H7; + jlong k00; + jlong k01; + jlong k02; + jlong k03; + jlong k04; + jlong k05; + jlong k06; + jlong k07; + jlong Kr0; + jlong Kr1; + jlong Kr2; + jlong Kr3; + jlong Kr4; + jlong Kr5; + jlong Kr6; + jlong Kr7; + jlong n0; + jlong n1; + jlong n2; + jlong n3; + jlong n4; + jlong n5; + jlong n6; + jlong n7; + jlong nn0; + jlong nn1; + jlong nn2; + jlong nn3; + jlong nn4; + jlong nn5; + jlong nn6; + jlong nn7; + jlong w0; + jlong w1; + jlong w2; + jlong w3; + jlong w4; + jlong w5; + jlong w6; + jlong w7; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_hash_Whirlpool__ diff --git a/libjava/gnu/java/security/jce/hash/HavalSpi.h b/libjava/gnu/java/security/jce/hash/HavalSpi.h new file mode 100644 index 000000000..71d304a0f --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/HavalSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_HavalSpi__ +#define __gnu_java_security_jce_hash_HavalSpi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class HavalSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::HavalSpi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + HavalSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_HavalSpi__ diff --git a/libjava/gnu/java/security/jce/hash/MD2Spi.h b/libjava/gnu/java/security/jce/hash/MD2Spi.h new file mode 100644 index 000000000..88aeccdea --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/MD2Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_MD2Spi__ +#define __gnu_java_security_jce_hash_MD2Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class MD2Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::MD2Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + MD2Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_MD2Spi__ diff --git a/libjava/gnu/java/security/jce/hash/MD4Spi.h b/libjava/gnu/java/security/jce/hash/MD4Spi.h new file mode 100644 index 000000000..0bc60f7a3 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/MD4Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_MD4Spi__ +#define __gnu_java_security_jce_hash_MD4Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class MD4Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::MD4Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + MD4Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_MD4Spi__ diff --git a/libjava/gnu/java/security/jce/hash/MD5Spi.h b/libjava/gnu/java/security/jce/hash/MD5Spi.h new file mode 100644 index 000000000..06e97fc9d --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/MD5Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_MD5Spi__ +#define __gnu_java_security_jce_hash_MD5Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class MD5Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::MD5Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + MD5Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_MD5Spi__ diff --git a/libjava/gnu/java/security/jce/hash/MessageDigestAdapter.h b/libjava/gnu/java/security/jce/hash/MessageDigestAdapter.h new file mode 100644 index 000000000..f12d4caa2 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/MessageDigestAdapter.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_MessageDigestAdapter__ +#define __gnu_java_security_jce_hash_MessageDigestAdapter__ + +#pragma interface + +#include <java/security/MessageDigestSpi.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + namespace jce + { + namespace hash + { + class MessageDigestAdapter; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::MessageDigestAdapter : public ::java::security::MessageDigestSpi +{ + +public: // actually protected + MessageDigestAdapter(::java::lang::String *); +private: + MessageDigestAdapter(::gnu::java::security::hash::IMessageDigest *); +public: + virtual ::java::lang::Object * clone(); + virtual jint engineGetDigestLength(); + virtual void engineUpdate(jbyte); + virtual void engineUpdate(JArray< jbyte > *, jint, jint); + virtual JArray< jbyte > * engineDigest(); + virtual jint engineDigest(JArray< jbyte > *, jint, jint); + virtual void engineReset(); +private: + ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::security::MessageDigestSpi)))) adaptee; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_MessageDigestAdapter__ diff --git a/libjava/gnu/java/security/jce/hash/RipeMD128Spi.h b/libjava/gnu/java/security/jce/hash/RipeMD128Spi.h new file mode 100644 index 000000000..35f1979fe --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/RipeMD128Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_RipeMD128Spi__ +#define __gnu_java_security_jce_hash_RipeMD128Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class RipeMD128Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::RipeMD128Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + RipeMD128Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_RipeMD128Spi__ diff --git a/libjava/gnu/java/security/jce/hash/RipeMD160Spi.h b/libjava/gnu/java/security/jce/hash/RipeMD160Spi.h new file mode 100644 index 000000000..79f5e4960 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/RipeMD160Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_RipeMD160Spi__ +#define __gnu_java_security_jce_hash_RipeMD160Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class RipeMD160Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::RipeMD160Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + RipeMD160Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_RipeMD160Spi__ diff --git a/libjava/gnu/java/security/jce/hash/Sha160Spi.h b/libjava/gnu/java/security/jce/hash/Sha160Spi.h new file mode 100644 index 000000000..d4fc3924e --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/Sha160Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_Sha160Spi__ +#define __gnu_java_security_jce_hash_Sha160Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class Sha160Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::Sha160Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + Sha160Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_Sha160Spi__ diff --git a/libjava/gnu/java/security/jce/hash/Sha256Spi.h b/libjava/gnu/java/security/jce/hash/Sha256Spi.h new file mode 100644 index 000000000..206ff8220 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/Sha256Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_Sha256Spi__ +#define __gnu_java_security_jce_hash_Sha256Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class Sha256Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::Sha256Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + Sha256Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_Sha256Spi__ diff --git a/libjava/gnu/java/security/jce/hash/Sha384Spi.h b/libjava/gnu/java/security/jce/hash/Sha384Spi.h new file mode 100644 index 000000000..2270ffe82 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/Sha384Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_Sha384Spi__ +#define __gnu_java_security_jce_hash_Sha384Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class Sha384Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::Sha384Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + Sha384Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_Sha384Spi__ diff --git a/libjava/gnu/java/security/jce/hash/Sha512Spi.h b/libjava/gnu/java/security/jce/hash/Sha512Spi.h new file mode 100644 index 000000000..f193304e1 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/Sha512Spi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_Sha512Spi__ +#define __gnu_java_security_jce_hash_Sha512Spi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class Sha512Spi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::Sha512Spi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + Sha512Spi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_Sha512Spi__ diff --git a/libjava/gnu/java/security/jce/hash/TigerSpi.h b/libjava/gnu/java/security/jce/hash/TigerSpi.h new file mode 100644 index 000000000..42897e8a5 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/TigerSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_TigerSpi__ +#define __gnu_java_security_jce_hash_TigerSpi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class TigerSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::TigerSpi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + TigerSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_TigerSpi__ diff --git a/libjava/gnu/java/security/jce/hash/WhirlpoolSpi.h b/libjava/gnu/java/security/jce/hash/WhirlpoolSpi.h new file mode 100644 index 000000000..a8d883e90 --- /dev/null +++ b/libjava/gnu/java/security/jce/hash/WhirlpoolSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_hash_WhirlpoolSpi__ +#define __gnu_java_security_jce_hash_WhirlpoolSpi__ + +#pragma interface + +#include <gnu/java/security/jce/hash/MessageDigestAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace hash + { + class WhirlpoolSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::hash::WhirlpoolSpi : public ::gnu::java::security::jce::hash::MessageDigestAdapter +{ + +public: + WhirlpoolSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_hash_WhirlpoolSpi__ diff --git a/libjava/gnu/java/security/jce/prng/HavalRandomSpi.h b/libjava/gnu/java/security/jce/prng/HavalRandomSpi.h new file mode 100644 index 000000000..727d444e9 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/HavalRandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_HavalRandomSpi__ +#define __gnu_java_security_jce_prng_HavalRandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class HavalRandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::HavalRandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + HavalRandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_HavalRandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/MD2RandomSpi.h b/libjava/gnu/java/security/jce/prng/MD2RandomSpi.h new file mode 100644 index 000000000..053a305aa --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/MD2RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_MD2RandomSpi__ +#define __gnu_java_security_jce_prng_MD2RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class MD2RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::MD2RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + MD2RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_MD2RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/MD4RandomSpi.h b/libjava/gnu/java/security/jce/prng/MD4RandomSpi.h new file mode 100644 index 000000000..0f11deb53 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/MD4RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_MD4RandomSpi__ +#define __gnu_java_security_jce_prng_MD4RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class MD4RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::MD4RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + MD4RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_MD4RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/MD5RandomSpi.h b/libjava/gnu/java/security/jce/prng/MD5RandomSpi.h new file mode 100644 index 000000000..8e5cc27f8 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/MD5RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_MD5RandomSpi__ +#define __gnu_java_security_jce_prng_MD5RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class MD5RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::MD5RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + MD5RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_MD5RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/RipeMD128RandomSpi.h b/libjava/gnu/java/security/jce/prng/RipeMD128RandomSpi.h new file mode 100644 index 000000000..51afaea58 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/RipeMD128RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_RipeMD128RandomSpi__ +#define __gnu_java_security_jce_prng_RipeMD128RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class RipeMD128RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::RipeMD128RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + RipeMD128RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_RipeMD128RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/RipeMD160RandomSpi.h b/libjava/gnu/java/security/jce/prng/RipeMD160RandomSpi.h new file mode 100644 index 000000000..f590267fd --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/RipeMD160RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_RipeMD160RandomSpi__ +#define __gnu_java_security_jce_prng_RipeMD160RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class RipeMD160RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::RipeMD160RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + RipeMD160RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_RipeMD160RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h b/libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h new file mode 100644 index 000000000..7495038c7 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/SecureRandomAdapter.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_SecureRandomAdapter__ +#define __gnu_java_security_jce_prng_SecureRandomAdapter__ + +#pragma interface + +#include <java/security/SecureRandomSpi.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class SecureRandomAdapter; + } + } + namespace prng + { + class MDGenerator; + } + } + } + } +} + +class gnu::java::security::jce::prng::SecureRandomAdapter : public ::java::security::SecureRandomSpi +{ + +public: // actually protected + SecureRandomAdapter(::java::lang::String *); +public: + static JArray< jbyte > * getSeed(jint); + virtual JArray< jbyte > * engineGenerateSeed(jint); + virtual void engineNextBytes(JArray< jbyte > *); + virtual void engineSetSeed(JArray< jbyte > *); +private: + jboolean __attribute__((aligned(__alignof__( ::java::security::SecureRandomSpi)))) isSeeded; + ::gnu::java::security::prng::MDGenerator * adaptee; + ::java::lang::String * mdName; + static ::java::util::logging::Logger * logger; + static ::java::lang::String * SECURERANDOM_SOURCE; + static ::java::lang::String * JAVA_SECURITY_EGD; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_SecureRandomAdapter__ diff --git a/libjava/gnu/java/security/jce/prng/Sha160RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha160RandomSpi.h new file mode 100644 index 000000000..dc896ab56 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/Sha160RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_Sha160RandomSpi__ +#define __gnu_java_security_jce_prng_Sha160RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class Sha160RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::Sha160RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + Sha160RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_Sha160RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/Sha256RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha256RandomSpi.h new file mode 100644 index 000000000..73e676cea --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/Sha256RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_Sha256RandomSpi__ +#define __gnu_java_security_jce_prng_Sha256RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class Sha256RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::Sha256RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + Sha256RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_Sha256RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/Sha384RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha384RandomSpi.h new file mode 100644 index 000000000..2f76f6903 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/Sha384RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_Sha384RandomSpi__ +#define __gnu_java_security_jce_prng_Sha384RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class Sha384RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::Sha384RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + Sha384RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_Sha384RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/Sha512RandomSpi.h b/libjava/gnu/java/security/jce/prng/Sha512RandomSpi.h new file mode 100644 index 000000000..0209fec83 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/Sha512RandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_Sha512RandomSpi__ +#define __gnu_java_security_jce_prng_Sha512RandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class Sha512RandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::Sha512RandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + Sha512RandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_Sha512RandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/TigerRandomSpi.h b/libjava/gnu/java/security/jce/prng/TigerRandomSpi.h new file mode 100644 index 000000000..238685cc6 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/TigerRandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_TigerRandomSpi__ +#define __gnu_java_security_jce_prng_TigerRandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class TigerRandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::TigerRandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + TigerRandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_TigerRandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/VMSecureRandom.h b/libjava/gnu/java/security/jce/prng/VMSecureRandom.h new file mode 100644 index 000000000..b24c80514 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/VMSecureRandom.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_VMSecureRandom__ +#define __gnu_java_security_jce_prng_VMSecureRandom__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class VMSecureRandom; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::VMSecureRandom : public ::java::lang::Object +{ + +public: // actually package-private + VMSecureRandom(); + static jint generateSeed(JArray< jbyte > *, jint, jint); + static jint natGenerateSeed(JArray< jbyte > *, jint, jint); +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_VMSecureRandom__ diff --git a/libjava/gnu/java/security/jce/prng/VMSecureRandom.java b/libjava/gnu/java/security/jce/prng/VMSecureRandom.java new file mode 100644 index 000000000..62ff8b7aa --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/VMSecureRandom.java @@ -0,0 +1,78 @@ +/* VMSecureRandom.java -- random seed generator. + Copyright (C) 2006, 2009 Free Software Foundation, Inc. + +This file is a part of GNU Classpath. + +GNU Classpath is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2 of the License, or (at +your option) any later version. + +GNU Classpath is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU Classpath; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 +USA + +Linking this library statically or dynamically with other modules is +making a combined work based on this library. Thus, the terms and +conditions of the GNU General Public License cover the whole +combination. + +As a special exception, the copyright holders of this library give you +permission to link this library with independent modules to produce an +executable, regardless of the license terms of these independent +modules, and to copy and distribute the resulting executable under +terms of your choice, provided that you also meet, for each linked +independent module, the terms and conditions of the license of that +module. An independent module is a module which is not derived from +or based on this library. If you modify this library, you may extend +this exception to your version of the library, but you are not +obligated to do so. If you do not wish to do so, delete this +exception statement from your version. */ + + +package gnu.java.security.jce.prng; + +/** + * VM-specific methods for generating real (or almost real) random + * seeds. VM implementors should write a version of this class that + * reads random bytes from some system source. + */ +final class VMSecureRandom +{ + + /** + * <p> + * Generate a random seed. Implementations are free to generate + * fewer random bytes than are requested, and leave the remaining + * bytes of the destination buffer as zeros. Implementations SHOULD, + * however, make a best-effort attempt to satisfy the request. + * </p> + * <p> + * The GCJ implementation uses a native method to read bytes from + * a system random source (e.g. /dev/random). + * </p> + * + * @param buffer The destination buffer. + * @param offset The offset in the buffer to start putting bytes. + * @param length The number of random bytes to generate. + * @return the number of bytes generated. + */ + static int generateSeed(byte[] buffer, int offset, int length) + { + if (length < 0) + throw new IllegalArgumentException("length must be nonnegative"); + if (offset < 0 || offset + length > buffer.length) + throw new IndexOutOfBoundsException(); + + return natGenerateSeed(buffer, offset, length); + } + + static native int natGenerateSeed(byte[] buffer, int offset, int length); + +}
\ No newline at end of file diff --git a/libjava/gnu/java/security/jce/prng/WhirlpoolRandomSpi.h b/libjava/gnu/java/security/jce/prng/WhirlpoolRandomSpi.h new file mode 100644 index 000000000..4d31a5e8d --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/WhirlpoolRandomSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_prng_WhirlpoolRandomSpi__ +#define __gnu_java_security_jce_prng_WhirlpoolRandomSpi__ + +#pragma interface + +#include <gnu/java/security/jce/prng/SecureRandomAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace prng + { + class WhirlpoolRandomSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::prng::WhirlpoolRandomSpi : public ::gnu::java::security::jce::prng::SecureRandomAdapter +{ + +public: + WhirlpoolRandomSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_prng_WhirlpoolRandomSpi__ diff --git a/libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc b/libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc new file mode 100644 index 000000000..a44f3f457 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/natVMSecureRandomPosix.cc @@ -0,0 +1,54 @@ +// natVMSecureRandomPosix.cc - Native part of VMSecureRandom class for POSIX. + +/* Copyright (C) 2009 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +#include <config.h> + +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> +#include <string.h> +#include <errno.h> + +#include <gcj/cni.h> +#include <java/lang/InternalError.h> +#include <gnu/java/security/jce/prng/VMSecureRandom.h> + +jint +gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length) +{ + int a, fd; + jbyte *bytes = elements (byte_array); + ssize_t count; + + for (a = 0; a < offset; ++a) + bytes++; + fd = open ("/dev/random", O_RDONLY); + + if (fd == -1) + { + jstring oserr = JvNewStringLatin1 (strerror (errno)); + throw new ::java::lang::InternalError + (JvNewStringLatin1 ("Error opening /dev/random: ")->concat(oserr)); + } + + count = read (fd, bytes, length); + close (fd); + + if (count == -1) + { + jstring oserr = JvNewStringLatin1 (strerror (errno)); + throw new ::java::lang::InternalError + (JvNewStringLatin1 ("Error reading /dev/random: ")->concat(oserr)); + } + + return count; +} + diff --git a/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc new file mode 100755 index 000000000..4c7c1f520 --- /dev/null +++ b/libjava/gnu/java/security/jce/prng/natVMSecureRandomWin32.cc @@ -0,0 +1,33 @@ +// natVMSecureRandomWin32.cc - Native part of VMSecureRandom class for Win32. + +/* Copyright (C) 2009, 2010 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +#include <config.h> + +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> +#include <string.h> +#include <errno.h> + +#include <gcj/cni.h> +#include <java/lang/InternalError.h> +#include <java/lang/UnsupportedOperationException.h> +#include <gnu/java/security/jce/prng/VMSecureRandom.h> + +jint +gnu::java::security::jce::prng::VMSecureRandom::natGenerateSeed(jbyteArray byte_array, jint offset, jint length) +{ + if (length != 0) + throw new ::java::lang::UnsupportedOperationException ( + JvNewStringLatin1 ("natGenerateSeed is not available for Win32 target.")); + return 0; +} + diff --git a/libjava/gnu/java/security/jce/sig/DSSKeyFactory.h b/libjava/gnu/java/security/jce/sig/DSSKeyFactory.h new file mode 100644 index 000000000..139ee5ddf --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/DSSKeyFactory.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_DSSKeyFactory__ +#define __gnu_java_security_jce_sig_DSSKeyFactory__ + +#pragma interface + +#include <java/security/KeyFactorySpi.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class DSSKeyFactory; + } + } + } + } + } + namespace java + { + namespace security + { + class Key; + class PrivateKey; + class PublicKey; + namespace spec + { + class KeySpec; + } + } + } +} + +class gnu::java::security::jce::sig::DSSKeyFactory : public ::java::security::KeyFactorySpi +{ + +public: + DSSKeyFactory(); +public: // actually protected + virtual ::java::security::PublicKey * engineGeneratePublic(::java::security::spec::KeySpec *); + virtual ::java::security::PrivateKey * engineGeneratePrivate(::java::security::spec::KeySpec *); + virtual ::java::security::spec::KeySpec * engineGetKeySpec(::java::security::Key *, ::java::lang::Class *); + virtual ::java::security::Key * engineTranslateKey(::java::security::Key *); +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_DSSKeyFactory__ diff --git a/libjava/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.h b/libjava/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.h new file mode 100644 index 000000000..38a6a9419 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/DSSKeyPairGeneratorSpi.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_DSSKeyPairGeneratorSpi__ +#define __gnu_java_security_jce_sig_DSSKeyPairGeneratorSpi__ + +#pragma interface + +#include <gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class DSSKeyPairGeneratorSpi; + } + } + } + } + } + namespace java + { + namespace security + { + class SecureRandom; + namespace interfaces + { + class DSAParams; + } + namespace spec + { + class AlgorithmParameterSpec; + } + } + } +} + +class gnu::java::security::jce::sig::DSSKeyPairGeneratorSpi : public ::gnu::java::security::jce::sig::KeyPairGeneratorAdapter +{ + +public: + DSSKeyPairGeneratorSpi(); + virtual void initialize(jint, ::java::security::SecureRandom *); + virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *); + virtual void initialize(::java::security::interfaces::DSAParams *, ::java::security::SecureRandom *); + virtual void initialize(jint, jboolean, ::java::security::SecureRandom *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_DSSKeyPairGeneratorSpi__ diff --git a/libjava/gnu/java/security/jce/sig/DSSParameters.h b/libjava/gnu/java/security/jce/sig/DSSParameters.h new file mode 100644 index 000000000..6d6f612bd --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/DSSParameters.h @@ -0,0 +1,67 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_DSSParameters__ +#define __gnu_java_security_jce_sig_DSSParameters__ + +#pragma interface + +#include <java/security/AlgorithmParametersSpi.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class DSSParameters; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + namespace spec + { + class AlgorithmParameterSpec; + } + } + } +} + +class gnu::java::security::jce::sig::DSSParameters : public ::java::security::AlgorithmParametersSpi +{ + +public: + DSSParameters(); +public: // actually protected + virtual void engineInit(::java::security::spec::AlgorithmParameterSpec *); + virtual void engineInit(JArray< jbyte > *); + virtual void engineInit(JArray< jbyte > *, ::java::lang::String *); + virtual ::java::security::spec::AlgorithmParameterSpec * engineGetParameterSpec(::java::lang::Class *); + virtual JArray< jbyte > * engineGetEncoded(); + virtual JArray< jbyte > * engineGetEncoded(::java::lang::String *); + virtual ::java::lang::String * engineToString(); +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::security::AlgorithmParametersSpi)))) p; + ::java::math::BigInteger * q; + ::java::math::BigInteger * g; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_DSSParameters__ diff --git a/libjava/gnu/java/security/jce/sig/DSSParametersGenerator.h b/libjava/gnu/java/security/jce/sig/DSSParametersGenerator.h new file mode 100644 index 000000000..292069400 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/DSSParametersGenerator.h @@ -0,0 +1,68 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_DSSParametersGenerator__ +#define __gnu_java_security_jce_sig_DSSParametersGenerator__ + +#pragma interface + +#include <java/security/AlgorithmParameterGeneratorSpi.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class DSSParametersGenerator; + } + } + namespace key + { + namespace dss + { + class FIPS186; + } + } + } + } + } + namespace java + { + namespace security + { + class AlgorithmParameters; + class Provider; + class SecureRandom; + namespace spec + { + class AlgorithmParameterSpec; + } + } + } +} + +class gnu::java::security::jce::sig::DSSParametersGenerator : public ::java::security::AlgorithmParameterGeneratorSpi +{ + +public: + DSSParametersGenerator(); +public: // actually protected + virtual void engineInit(jint, ::java::security::SecureRandom *); + virtual void engineInit(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *); + virtual ::java::security::AlgorithmParameters * engineGenerateParameters(); +private: + static ::java::security::Provider * GNU; + jint __attribute__((aligned(__alignof__( ::java::security::AlgorithmParameterGeneratorSpi)))) modulusLength; + ::java::security::SecureRandom * rnd; + ::gnu::java::security::key::dss::FIPS186 * fips; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_DSSParametersGenerator__ diff --git a/libjava/gnu/java/security/jce/sig/DSSRawSignatureSpi.h b/libjava/gnu/java/security/jce/sig/DSSRawSignatureSpi.h new file mode 100644 index 000000000..d135b61f9 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/DSSRawSignatureSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_DSSRawSignatureSpi__ +#define __gnu_java_security_jce_sig_DSSRawSignatureSpi__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class DSSRawSignatureSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::DSSRawSignatureSpi : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + DSSRawSignatureSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_DSSRawSignatureSpi__ diff --git a/libjava/gnu/java/security/jce/sig/EncodedKeyFactory.h b/libjava/gnu/java/security/jce/sig/EncodedKeyFactory.h new file mode 100644 index 000000000..23dced6db --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/EncodedKeyFactory.h @@ -0,0 +1,106 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_EncodedKeyFactory__ +#define __gnu_java_security_jce_sig_EncodedKeyFactory__ + +#pragma interface + +#include <java/security/KeyFactorySpi.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class EncodedKeyFactory; + } + } + namespace key + { + namespace dss + { + class DSSPublicKey; + } + namespace rsa + { + class GnuRSAPublicKey; + } + } + } + } + } + namespace java + { + namespace security + { + class Key; + class PrivateKey; + class PublicKey; + namespace spec + { + class DSAPrivateKeySpec; + class DSAPublicKeySpec; + class KeySpec; + class RSAPrivateCrtKeySpec; + class RSAPublicKeySpec; + } + } + } + namespace javax + { + namespace crypto + { + namespace interfaces + { + class DHPrivateKey; + class DHPublicKey; + } + namespace spec + { + class DHPrivateKeySpec; + class DHPublicKeySpec; + } + } + } +} + +class gnu::java::security::jce::sig::EncodedKeyFactory : public ::java::security::KeyFactorySpi +{ + +public: + EncodedKeyFactory(); +private: + static ::java::lang::Object * invokeConstructor(::java::lang::String *, JArray< ::java::lang::Object * > *); + static ::java::lang::Class * getConcreteClass(::java::lang::String *); + static ::java::lang::reflect::Constructor * getConcreteCtor(::java::lang::Class *); + static ::java::lang::Object * invokeValueOf(::java::lang::String *, JArray< jbyte > *); + static ::java::lang::reflect::Method * getValueOfMethod(::java::lang::Class *); +public: // actually protected + virtual ::java::security::PublicKey * engineGeneratePublic(::java::security::spec::KeySpec *); + virtual ::java::security::PrivateKey * engineGeneratePrivate(::java::security::spec::KeySpec *); + virtual ::java::security::spec::KeySpec * engineGetKeySpec(::java::security::Key *, ::java::lang::Class *); + virtual ::java::security::Key * engineTranslateKey(::java::security::Key *); +private: + ::gnu::java::security::key::dss::DSSPublicKey * decodeDSSPublicKey(::java::security::spec::DSAPublicKeySpec *); + ::gnu::java::security::key::rsa::GnuRSAPublicKey * decodeRSAPublicKey(::java::security::spec::RSAPublicKeySpec *); + ::javax::crypto::interfaces::DHPublicKey * decodeDHPublicKey(::javax::crypto::spec::DHPublicKeySpec *); + ::javax::crypto::interfaces::DHPublicKey * decodeDHPublicKey(JArray< jbyte > *); + ::java::security::PrivateKey * decodeDSSPrivateKey(::java::security::spec::DSAPrivateKeySpec *); + ::java::security::PrivateKey * decodeRSAPrivateKey(::java::security::spec::RSAPrivateCrtKeySpec *); + ::javax::crypto::interfaces::DHPrivateKey * decodeDHPrivateKey(::javax::crypto::spec::DHPrivateKeySpec *); + ::javax::crypto::interfaces::DHPrivateKey * decodeDHPrivateKey(JArray< jbyte > *); + static ::java::util::logging::Logger * log; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_EncodedKeyFactory__ diff --git a/libjava/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h b/libjava/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h new file mode 100644 index 000000000..9a7778408 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h @@ -0,0 +1,61 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_KeyPairGeneratorAdapter__ +#define __gnu_java_security_jce_sig_KeyPairGeneratorAdapter__ + +#pragma interface + +#include <java/security/KeyPairGenerator.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class KeyPairGeneratorAdapter; + } + } + namespace key + { + class IKeyPairGenerator; + } + } + } + } + namespace java + { + namespace security + { + class KeyPair; + class SecureRandom; + namespace spec + { + class AlgorithmParameterSpec; + } + } + } +} + +class gnu::java::security::jce::sig::KeyPairGeneratorAdapter : public ::java::security::KeyPairGenerator +{ + +public: // actually protected + KeyPairGeneratorAdapter(::java::lang::String *); +public: + virtual void initialize(jint, ::java::security::SecureRandom *) = 0; + virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *) = 0; + virtual ::java::security::KeyPair * generateKeyPair(); +public: // actually protected + ::gnu::java::security::key::IKeyPairGenerator * __attribute__((aligned(__alignof__( ::java::security::KeyPairGenerator)))) adaptee; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_KeyPairGeneratorAdapter__ diff --git a/libjava/gnu/java/security/jce/sig/MD2withRSA.h b/libjava/gnu/java/security/jce/sig/MD2withRSA.h new file mode 100644 index 000000000..68ae75f32 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/MD2withRSA.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_MD2withRSA__ +#define __gnu_java_security_jce_sig_MD2withRSA__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class MD2withRSA; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::MD2withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + MD2withRSA(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_MD2withRSA__ diff --git a/libjava/gnu/java/security/jce/sig/MD5withRSA.h b/libjava/gnu/java/security/jce/sig/MD5withRSA.h new file mode 100644 index 000000000..919b74fea --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/MD5withRSA.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_MD5withRSA__ +#define __gnu_java_security_jce_sig_MD5withRSA__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class MD5withRSA; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::MD5withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + MD5withRSA(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_MD5withRSA__ diff --git a/libjava/gnu/java/security/jce/sig/RSAKeyFactory.h b/libjava/gnu/java/security/jce/sig/RSAKeyFactory.h new file mode 100644 index 000000000..8c10a0a12 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/RSAKeyFactory.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_RSAKeyFactory__ +#define __gnu_java_security_jce_sig_RSAKeyFactory__ + +#pragma interface + +#include <java/security/KeyFactorySpi.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class RSAKeyFactory; + } + } + } + } + } + namespace java + { + namespace security + { + class Key; + class PrivateKey; + class PublicKey; + namespace spec + { + class KeySpec; + } + } + } +} + +class gnu::java::security::jce::sig::RSAKeyFactory : public ::java::security::KeyFactorySpi +{ + +public: + RSAKeyFactory(); +public: // actually protected + virtual ::java::security::PublicKey * engineGeneratePublic(::java::security::spec::KeySpec *); + virtual ::java::security::PrivateKey * engineGeneratePrivate(::java::security::spec::KeySpec *); + virtual ::java::security::spec::KeySpec * engineGetKeySpec(::java::security::Key *, ::java::lang::Class *); + virtual ::java::security::Key * engineTranslateKey(::java::security::Key *); +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_RSAKeyFactory__ diff --git a/libjava/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.h b/libjava/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.h new file mode 100644 index 000000000..97f6aced8 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/RSAKeyPairGeneratorSpi.h @@ -0,0 +1,51 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_RSAKeyPairGeneratorSpi__ +#define __gnu_java_security_jce_sig_RSAKeyPairGeneratorSpi__ + +#pragma interface + +#include <gnu/java/security/jce/sig/KeyPairGeneratorAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class RSAKeyPairGeneratorSpi; + } + } + } + } + } + namespace java + { + namespace security + { + class SecureRandom; + namespace spec + { + class AlgorithmParameterSpec; + } + } + } +} + +class gnu::java::security::jce::sig::RSAKeyPairGeneratorSpi : public ::gnu::java::security::jce::sig::KeyPairGeneratorAdapter +{ + +public: + RSAKeyPairGeneratorSpi(); + virtual void initialize(jint, ::java::security::SecureRandom *); + virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_RSAKeyPairGeneratorSpi__ diff --git a/libjava/gnu/java/security/jce/sig/RSAPSSRawSignatureSpi.h b/libjava/gnu/java/security/jce/sig/RSAPSSRawSignatureSpi.h new file mode 100644 index 000000000..56ad41681 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/RSAPSSRawSignatureSpi.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_RSAPSSRawSignatureSpi__ +#define __gnu_java_security_jce_sig_RSAPSSRawSignatureSpi__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class RSAPSSRawSignatureSpi; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::RSAPSSRawSignatureSpi : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + RSAPSSRawSignatureSpi(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_RSAPSSRawSignatureSpi__ diff --git a/libjava/gnu/java/security/jce/sig/SHA160withDSS.h b/libjava/gnu/java/security/jce/sig/SHA160withDSS.h new file mode 100644 index 000000000..fc595d465 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/SHA160withDSS.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_SHA160withDSS__ +#define __gnu_java_security_jce_sig_SHA160withDSS__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class SHA160withDSS; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::SHA160withDSS : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + SHA160withDSS(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_SHA160withDSS__ diff --git a/libjava/gnu/java/security/jce/sig/SHA160withRSA.h b/libjava/gnu/java/security/jce/sig/SHA160withRSA.h new file mode 100644 index 000000000..93a886c27 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/SHA160withRSA.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_SHA160withRSA__ +#define __gnu_java_security_jce_sig_SHA160withRSA__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class SHA160withRSA; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::SHA160withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + SHA160withRSA(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_SHA160withRSA__ diff --git a/libjava/gnu/java/security/jce/sig/SHA256withRSA.h b/libjava/gnu/java/security/jce/sig/SHA256withRSA.h new file mode 100644 index 000000000..9b736522a --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/SHA256withRSA.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_SHA256withRSA__ +#define __gnu_java_security_jce_sig_SHA256withRSA__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class SHA256withRSA; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::SHA256withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + SHA256withRSA(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_SHA256withRSA__ diff --git a/libjava/gnu/java/security/jce/sig/SHA384withRSA.h b/libjava/gnu/java/security/jce/sig/SHA384withRSA.h new file mode 100644 index 000000000..db01a6e14 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/SHA384withRSA.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_SHA384withRSA__ +#define __gnu_java_security_jce_sig_SHA384withRSA__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class SHA384withRSA; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::SHA384withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + SHA384withRSA(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_SHA384withRSA__ diff --git a/libjava/gnu/java/security/jce/sig/SHA512withRSA.h b/libjava/gnu/java/security/jce/sig/SHA512withRSA.h new file mode 100644 index 000000000..13ea93543 --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/SHA512withRSA.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_SHA512withRSA__ +#define __gnu_java_security_jce_sig_SHA512withRSA__ + +#pragma interface + +#include <gnu/java/security/jce/sig/SignatureAdapter.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class SHA512withRSA; + } + } + } + } + } +} + +class gnu::java::security::jce::sig::SHA512withRSA : public ::gnu::java::security::jce::sig::SignatureAdapter +{ + +public: + SHA512withRSA(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_SHA512withRSA__ diff --git a/libjava/gnu/java/security/jce/sig/SignatureAdapter.h b/libjava/gnu/java/security/jce/sig/SignatureAdapter.h new file mode 100644 index 000000000..68fdd64cb --- /dev/null +++ b/libjava/gnu/java/security/jce/sig/SignatureAdapter.h @@ -0,0 +1,78 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_jce_sig_SignatureAdapter__ +#define __gnu_java_security_jce_sig_SignatureAdapter__ + +#pragma interface + +#include <java/security/SignatureSpi.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace jce + { + namespace sig + { + class SignatureAdapter; + } + } + namespace sig + { + class ISignature; + class ISignatureCodec; + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + class SecureRandom; + namespace spec + { + class AlgorithmParameterSpec; + } + } + } +} + +class gnu::java::security::jce::sig::SignatureAdapter : public ::java::security::SignatureSpi +{ + +public: // actually protected + SignatureAdapter(::java::lang::String *, ::gnu::java::security::sig::ISignatureCodec *); +private: + SignatureAdapter(::gnu::java::security::sig::ISignature *, ::gnu::java::security::sig::ISignatureCodec *); +public: + virtual ::java::lang::Object * clone(); + virtual void engineInitVerify(::java::security::PublicKey *); + virtual void engineInitSign(::java::security::PrivateKey *); + virtual void engineInitSign(::java::security::PrivateKey *, ::java::security::SecureRandom *); + virtual void engineUpdate(jbyte); + virtual void engineUpdate(JArray< jbyte > *, jint, jint); + virtual JArray< jbyte > * engineSign(); + virtual jint engineSign(JArray< jbyte > *, jint, jint); + virtual jboolean engineVerify(JArray< jbyte > *); + virtual void engineSetParameter(::java::lang::String *, ::java::lang::Object *); + virtual void engineSetParameter(::java::security::spec::AlgorithmParameterSpec *); + virtual ::java::lang::Object * engineGetParameter(::java::lang::String *); +private: + static ::java::util::logging::Logger * log; + ::gnu::java::security::sig::ISignature * __attribute__((aligned(__alignof__( ::java::security::SignatureSpi)))) adaptee; + ::gnu::java::security::sig::ISignatureCodec * codec; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_jce_sig_SignatureAdapter__ diff --git a/libjava/gnu/java/security/key/IKeyPairCodec.h b/libjava/gnu/java/security/key/IKeyPairCodec.h new file mode 100644 index 000000000..61a4f1849 --- /dev/null +++ b/libjava/gnu/java/security/key/IKeyPairCodec.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_IKeyPairCodec__ +#define __gnu_java_security_key_IKeyPairCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + class IKeyPairCodec; + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::IKeyPairCodec : public ::java::lang::Object +{ + +public: + virtual jint getFormatID() = 0; + virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *) = 0; + virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *) = 0; + virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *) = 0; + virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *) = 0; + static const jint RAW_FORMAT = 1; + static const jint X509_FORMAT = 2; + static const jint PKCS8_FORMAT = 3; + static const jint ASN1_FORMAT = 4; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_key_IKeyPairCodec__ diff --git a/libjava/gnu/java/security/key/IKeyPairGenerator.h b/libjava/gnu/java/security/key/IKeyPairGenerator.h new file mode 100644 index 000000000..1ae2a4861 --- /dev/null +++ b/libjava/gnu/java/security/key/IKeyPairGenerator.h @@ -0,0 +1,44 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_IKeyPairGenerator__ +#define __gnu_java_security_key_IKeyPairGenerator__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + class IKeyPairGenerator; + } + } + } + } + namespace java + { + namespace security + { + class KeyPair; + } + } +} + +class gnu::java::security::key::IKeyPairGenerator : public ::java::lang::Object +{ + +public: + virtual ::java::lang::String * name() = 0; + virtual void setup(::java::util::Map *) = 0; + virtual ::java::security::KeyPair * generate() = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_key_IKeyPairGenerator__ diff --git a/libjava/gnu/java/security/key/KeyPairCodecFactory.h b/libjava/gnu/java/security/key/KeyPairCodecFactory.h new file mode 100644 index 000000000..e6ac55fa9 --- /dev/null +++ b/libjava/gnu/java/security/key/KeyPairCodecFactory.h @@ -0,0 +1,59 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_KeyPairCodecFactory__ +#define __gnu_java_security_key_KeyPairCodecFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + class IKeyPairCodec; + class KeyPairCodecFactory; + } + } + } + } + namespace java + { + namespace security + { + class Key; + } + } +} + +class gnu::java::security::key::KeyPairCodecFactory : public ::java::lang::Object +{ + + KeyPairCodecFactory(); +public: + static ::gnu::java::security::key::IKeyPairCodec * getInstance(::java::lang::String *); + static ::gnu::java::security::key::IKeyPairCodec * getInstance(::java::lang::String *, ::java::lang::String *); + static ::gnu::java::security::key::IKeyPairCodec * getInstance(::java::lang::String *, jint); + static ::gnu::java::security::key::IKeyPairCodec * getInstance(::java::security::Key *); + static ::java::util::Set * getNames(); +private: + static ::gnu::java::security::key::IKeyPairCodec * makeInstance(::java::lang::String *); + static jboolean matches(::java::lang::Object *, ::java::lang::String *); + static ::gnu::java::security::key::IKeyPairCodec * getRawCodec(::java::lang::String *); + static ::gnu::java::security::key::IKeyPairCodec * getX509Codec(::java::lang::String *); + static ::gnu::java::security::key::IKeyPairCodec * getPKCS8Codec(::java::lang::String *); + static ::gnu::java::security::key::IKeyPairCodec * getRawCodec(::java::security::Key *); + static ::gnu::java::security::key::IKeyPairCodec * getX509Codec(::java::security::Key *); + static ::gnu::java::security::key::IKeyPairCodec * getPKCS8Codec(::java::security::Key *); + static ::java::util::Set * names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_KeyPairCodecFactory__ diff --git a/libjava/gnu/java/security/key/KeyPairGeneratorFactory.h b/libjava/gnu/java/security/key/KeyPairGeneratorFactory.h new file mode 100644 index 000000000..4d877a315 --- /dev/null +++ b/libjava/gnu/java/security/key/KeyPairGeneratorFactory.h @@ -0,0 +1,41 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_KeyPairGeneratorFactory__ +#define __gnu_java_security_key_KeyPairGeneratorFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + class IKeyPairGenerator; + class KeyPairGeneratorFactory; + } + } + } + } +} + +class gnu::java::security::key::KeyPairGeneratorFactory : public ::java::lang::Object +{ + + KeyPairGeneratorFactory(); +public: + static ::gnu::java::security::key::IKeyPairGenerator * getInstance(::java::lang::String *); + static ::java::util::Set * getNames(); +private: + static ::gnu::java::security::key::IKeyPairGenerator * makeInstance(::java::lang::String *); +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_KeyPairGeneratorFactory__ diff --git a/libjava/gnu/java/security/key/dss/DSSKey.h b/libjava/gnu/java/security/key/dss/DSSKey.h new file mode 100644 index 000000000..de8ebb250 --- /dev/null +++ b/libjava/gnu/java/security/key/dss/DSSKey.h @@ -0,0 +1,71 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_DSSKey__ +#define __gnu_java_security_key_dss_DSSKey__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace dss + { + class DSSKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + namespace interfaces + { + class DSAParams; + } + } + } +} + +class gnu::java::security::key::dss::DSSKey : public ::java::lang::Object +{ + +public: // actually protected + DSSKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); +public: + virtual ::java::security::interfaces::DSAParams * getParams(); + virtual ::java::lang::String * getAlgorithm(); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::lang::String * getFormat(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); + virtual JArray< jbyte > * getEncoded(jint) = 0; + virtual jboolean hasInheritedParameters(); +public: // actually protected + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) p; + ::java::math::BigInteger * q; + ::java::math::BigInteger * g; + jint defaultFormat; +private: + ::java::lang::String * str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_DSSKey__ diff --git a/libjava/gnu/java/security/key/dss/DSSKeyPairGenerator.h b/libjava/gnu/java/security/key/dss/DSSKeyPairGenerator.h new file mode 100644 index 000000000..e78abe027 --- /dev/null +++ b/libjava/gnu/java/security/key/dss/DSSKeyPairGenerator.h @@ -0,0 +1,98 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_DSSKeyPairGenerator__ +#define __gnu_java_security_key_dss_DSSKeyPairGenerator__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace dss + { + class DSSKeyPairGenerator; + } + } + namespace util + { + class PRNG; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class KeyPair; + class SecureRandom; + namespace spec + { + class DSAParameterSpec; + } + } + } +} + +class gnu::java::security::key::dss::DSSKeyPairGenerator : public ::java::lang::Object +{ + +public: + DSSKeyPairGenerator(); + virtual ::java::lang::String * name(); + virtual void setup(::java::util::Map *); + virtual ::java::security::KeyPair * generate(); +private: + ::java::math::BigInteger * nextX(); + void nextRandomBytes(JArray< jbyte > *); + ::gnu::java::security::util::PRNG * getDefaultPRNG(); + static ::java::util::logging::Logger * log; + static ::java::math::BigInteger * TWO; +public: + static ::java::lang::String * MODULUS_LENGTH; + static ::java::lang::String * USE_DEFAULTS; + static ::java::lang::String * STRICT_DEFAULTS; + static ::java::lang::String * SOURCE_OF_RANDOMNESS; + static ::java::lang::String * DSS_PARAMETERS; + static ::java::lang::String * PREFERRED_ENCODING_FORMAT; + static const jint DEFAULT_MODULUS_LENGTH = 1024; +private: + static const jint DEFAULT_ENCODING_FORMAT = 1; + static JArray< jint > * T_SHS; +public: + static ::java::security::spec::DSAParameterSpec * KEY_PARAMS_512; + static ::java::security::spec::DSAParameterSpec * KEY_PARAMS_768; + static ::java::security::spec::DSAParameterSpec * KEY_PARAMS_1024; +private: + static ::java::math::BigInteger * TWO_POW_160; + jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) L; + ::java::security::SecureRandom * rnd; + ::java::math::BigInteger * seed; + ::java::math::BigInteger * counter; + ::java::math::BigInteger * p; + ::java::math::BigInteger * q; + ::java::math::BigInteger * e; + ::java::math::BigInteger * g; + ::java::math::BigInteger * XKEY; + ::gnu::java::security::util::PRNG * prng; + jint preferredFormat; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_DSSKeyPairGenerator__ diff --git a/libjava/gnu/java/security/key/dss/DSSKeyPairPKCS8Codec.h b/libjava/gnu/java/security/key/dss/DSSKeyPairPKCS8Codec.h new file mode 100644 index 000000000..98813dc71 --- /dev/null +++ b/libjava/gnu/java/security/key/dss/DSSKeyPairPKCS8Codec.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_DSSKeyPairPKCS8Codec__ +#define __gnu_java_security_key_dss_DSSKeyPairPKCS8Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace key + { + namespace dss + { + class DSSKeyPairPKCS8Codec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::dss::DSSKeyPairPKCS8Codec : public ::java::lang::Object +{ + +public: + DSSKeyPairPKCS8Codec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *); + virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *); + virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *); + virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *); +private: + static ::java::util::logging::Logger * log; + static ::gnu::java::security::OID * DSA_ALG_OID; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_DSSKeyPairPKCS8Codec__ diff --git a/libjava/gnu/java/security/key/dss/DSSKeyPairRawCodec.h b/libjava/gnu/java/security/key/dss/DSSKeyPairRawCodec.h new file mode 100644 index 000000000..cc22055d6 --- /dev/null +++ b/libjava/gnu/java/security/key/dss/DSSKeyPairRawCodec.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_DSSKeyPairRawCodec__ +#define __gnu_java_security_key_dss_DSSKeyPairRawCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace dss + { + class DSSKeyPairRawCodec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::dss::DSSKeyPairRawCodec : public ::java::lang::Object +{ + +public: + DSSKeyPairRawCodec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *); + virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *); + virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *); + virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_DSSKeyPairRawCodec__ diff --git a/libjava/gnu/java/security/key/dss/DSSKeyPairX509Codec.h b/libjava/gnu/java/security/key/dss/DSSKeyPairX509Codec.h new file mode 100644 index 000000000..c56ba1cf9 --- /dev/null +++ b/libjava/gnu/java/security/key/dss/DSSKeyPairX509Codec.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_DSSKeyPairX509Codec__ +#define __gnu_java_security_key_dss_DSSKeyPairX509Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace key + { + namespace dss + { + class DSSKeyPairX509Codec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::dss::DSSKeyPairX509Codec : public ::java::lang::Object +{ + +public: + DSSKeyPairX509Codec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *); + virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *); + virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *); + virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *); +private: + static ::gnu::java::security::OID * DSA_ALG_OID; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_DSSKeyPairX509Codec__ diff --git a/libjava/gnu/java/security/key/dss/DSSPrivateKey.h b/libjava/gnu/java/security/key/dss/DSSPrivateKey.h new file mode 100644 index 000000000..b7816b86a --- /dev/null +++ b/libjava/gnu/java/security/key/dss/DSSPrivateKey.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_DSSPrivateKey__ +#define __gnu_java_security_key_dss_DSSPrivateKey__ + +#pragma interface + +#include <gnu/java/security/key/dss/DSSKey.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace dss + { + class DSSPrivateKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::dss::DSSPrivateKey : public ::gnu::java::security::key::dss::DSSKey +{ + +public: + DSSPrivateKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + DSSPrivateKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + static ::gnu::java::security::key::dss::DSSPrivateKey * valueOf(JArray< jbyte > *); + virtual ::java::math::BigInteger * getX(); + virtual JArray< jbyte > * getEncoded(jint); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::java::security::key::dss::DSSKey)))) x; + ::java::lang::String * str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_DSSPrivateKey__ diff --git a/libjava/gnu/java/security/key/dss/DSSPublicKey.h b/libjava/gnu/java/security/key/dss/DSSPublicKey.h new file mode 100644 index 000000000..bffd46237 --- /dev/null +++ b/libjava/gnu/java/security/key/dss/DSSPublicKey.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_DSSPublicKey__ +#define __gnu_java_security_key_dss_DSSPublicKey__ + +#pragma interface + +#include <gnu/java/security/key/dss/DSSKey.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace dss + { + class DSSPublicKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::dss::DSSPublicKey : public ::gnu::java::security::key::dss::DSSKey +{ + +public: + DSSPublicKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + DSSPublicKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + static ::gnu::java::security::key::dss::DSSPublicKey * valueOf(JArray< jbyte > *); + virtual ::java::math::BigInteger * getY(); + virtual JArray< jbyte > * getEncoded(jint); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::java::security::key::dss::DSSKey)))) y; + ::java::lang::String * str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_DSSPublicKey__ diff --git a/libjava/gnu/java/security/key/dss/FIPS186.h b/libjava/gnu/java/security/key/dss/FIPS186.h new file mode 100644 index 000000000..1b972d448 --- /dev/null +++ b/libjava/gnu/java/security/key/dss/FIPS186.h @@ -0,0 +1,78 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_dss_FIPS186__ +#define __gnu_java_security_key_dss_FIPS186__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class Sha160; + } + namespace key + { + namespace dss + { + class FIPS186; + } + } + namespace util + { + class PRNG; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class SecureRandom; + } + } +} + +class gnu::java::security::key::dss::FIPS186 : public ::java::lang::Object +{ + +public: + FIPS186(jint, ::java::security::SecureRandom *); + virtual JArray< ::java::math::BigInteger * > * generateParameters(); +private: + void nextRandomBytes(JArray< jbyte > *); + ::gnu::java::security::util::PRNG * getDefaultPRNG(); +public: + static const jint DSA_PARAMS_SEED = 0; + static const jint DSA_PARAMS_COUNTER = 1; + static const jint DSA_PARAMS_Q = 2; + static const jint DSA_PARAMS_P = 3; + static const jint DSA_PARAMS_E = 4; + static const jint DSA_PARAMS_G = 5; +private: + static ::java::math::BigInteger * TWO; + static ::java::math::BigInteger * TWO_POW_160; + ::gnu::java::security::hash::Sha160 * __attribute__((aligned(__alignof__( ::java::lang::Object)))) sha; + jint L; + ::java::security::SecureRandom * rnd; + ::gnu::java::security::util::PRNG * prng; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_dss_FIPS186__ diff --git a/libjava/gnu/java/security/key/rsa/GnuRSAKey.h b/libjava/gnu/java/security/key/rsa/GnuRSAKey.h new file mode 100644 index 000000000..77a57b0a6 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/GnuRSAKey.h @@ -0,0 +1,66 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_GnuRSAKey__ +#define __gnu_java_security_key_rsa_GnuRSAKey__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class GnuRSAKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::rsa::GnuRSAKey : public ::java::lang::Object +{ + +public: // actually protected + GnuRSAKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *); +public: + virtual ::java::math::BigInteger * getModulus(); + virtual ::java::lang::String * getAlgorithm(); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::lang::String * getFormat(); + virtual ::java::math::BigInteger * getN(); + virtual ::java::math::BigInteger * getPublicExponent(); + virtual ::java::math::BigInteger * getE(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); + virtual JArray< jbyte > * getEncoded(jint) = 0; +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) n; + ::java::math::BigInteger * e; +public: // actually protected + jint defaultFormat; +private: + ::java::lang::String * str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_GnuRSAKey__ diff --git a/libjava/gnu/java/security/key/rsa/GnuRSAPrivateKey.h b/libjava/gnu/java/security/key/rsa/GnuRSAPrivateKey.h new file mode 100644 index 000000000..3033418ae --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/GnuRSAPrivateKey.h @@ -0,0 +1,68 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_GnuRSAPrivateKey__ +#define __gnu_java_security_key_rsa_GnuRSAPrivateKey__ + +#pragma interface + +#include <gnu/java/security/key/rsa/GnuRSAKey.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class GnuRSAPrivateKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::rsa::GnuRSAPrivateKey : public ::gnu::java::security::key::rsa::GnuRSAKey +{ + +public: + GnuRSAPrivateKey(::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + GnuRSAPrivateKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + GnuRSAPrivateKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *, ::java::math::BigInteger *); + static ::gnu::java::security::key::rsa::GnuRSAPrivateKey * valueOf(JArray< jbyte > *); + virtual ::java::math::BigInteger * getPrimeP(); + virtual ::java::math::BigInteger * getPrimeQ(); + virtual ::java::math::BigInteger * getPrimeExponentP(); + virtual ::java::math::BigInteger * getPrimeExponentQ(); + virtual ::java::math::BigInteger * getCrtCoefficient(); + virtual ::java::math::BigInteger * getPrivateExponent(); + virtual JArray< jbyte > * getEncoded(jint); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::java::security::key::rsa::GnuRSAKey)))) p; + ::java::math::BigInteger * q; + ::java::math::BigInteger * d; + ::java::math::BigInteger * dP; + ::java::math::BigInteger * dQ; + ::java::math::BigInteger * qInv; + ::java::lang::String * str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_GnuRSAPrivateKey__ diff --git a/libjava/gnu/java/security/key/rsa/GnuRSAPublicKey.h b/libjava/gnu/java/security/key/rsa/GnuRSAPublicKey.h new file mode 100644 index 000000000..149a68578 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/GnuRSAPublicKey.h @@ -0,0 +1,55 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_GnuRSAPublicKey__ +#define __gnu_java_security_key_rsa_GnuRSAPublicKey__ + +#pragma interface + +#include <gnu/java/security/key/rsa/GnuRSAKey.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class GnuRSAPublicKey; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::key::rsa::GnuRSAPublicKey : public ::gnu::java::security::key::rsa::GnuRSAKey +{ + +public: + GnuRSAPublicKey(::java::math::BigInteger *, ::java::math::BigInteger *); + GnuRSAPublicKey(jint, ::java::math::BigInteger *, ::java::math::BigInteger *); + static ::gnu::java::security::key::rsa::GnuRSAPublicKey * valueOf(JArray< jbyte > *); + virtual JArray< jbyte > * getEncoded(jint); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +private: + ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::java::security::key::rsa::GnuRSAKey)))) str; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_GnuRSAPublicKey__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairGenerator.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairGenerator.h new file mode 100644 index 000000000..b59d0be30 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairGenerator.h @@ -0,0 +1,79 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairGenerator__ +#define __gnu_java_security_key_rsa_RSAKeyPairGenerator__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class RSAKeyPairGenerator; + } + } + namespace util + { + class PRNG; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class KeyPair; + class SecureRandom; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairGenerator : public ::java::lang::Object +{ + +public: + RSAKeyPairGenerator(); + virtual ::java::lang::String * name(); + virtual void setup(::java::util::Map *); + virtual ::java::security::KeyPair * generate(); +private: + void nextRandomBytes(JArray< jbyte > *); + ::gnu::java::security::util::PRNG * getDefaultPRNG(); + static ::java::util::logging::Logger * log; + static ::java::math::BigInteger * ONE; + static ::java::math::BigInteger * TWO; +public: + static ::java::lang::String * MODULUS_LENGTH; + static ::java::lang::String * SOURCE_OF_RANDOMNESS; + static ::java::lang::String * RSA_PARAMETERS; + static ::java::lang::String * PREFERRED_ENCODING_FORMAT; +private: + static const jint DEFAULT_MODULUS_LENGTH = 1024; + static const jint DEFAULT_ENCODING_FORMAT = 1; + jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) L; + ::java::math::BigInteger * e; + ::java::security::SecureRandom * rnd; + ::gnu::java::security::util::PRNG * prng; + jint preferredFormat; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_RSAKeyPairGenerator__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.h new file mode 100644 index 000000000..174fea9d4 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairPKCS8Codec__ +#define __gnu_java_security_key_rsa_RSAKeyPairPKCS8Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace key + { + namespace rsa + { + class RSAKeyPairPKCS8Codec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairPKCS8Codec : public ::java::lang::Object +{ + +public: + RSAKeyPairPKCS8Codec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *); + virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *); + virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *); + virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *); +private: + static ::java::util::logging::Logger * log; + static ::gnu::java::security::OID * RSA_ALG_OID; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_RSAKeyPairPKCS8Codec__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairRawCodec.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairRawCodec.h new file mode 100644 index 000000000..0715d8151 --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairRawCodec.h @@ -0,0 +1,53 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairRawCodec__ +#define __gnu_java_security_key_rsa_RSAKeyPairRawCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace key + { + namespace rsa + { + class RSAKeyPairRawCodec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairRawCodec : public ::java::lang::Object +{ + +public: + RSAKeyPairRawCodec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *); + virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *); + virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *); + virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_RSAKeyPairRawCodec__ diff --git a/libjava/gnu/java/security/key/rsa/RSAKeyPairX509Codec.h b/libjava/gnu/java/security/key/rsa/RSAKeyPairX509Codec.h new file mode 100644 index 000000000..53abc9e9f --- /dev/null +++ b/libjava/gnu/java/security/key/rsa/RSAKeyPairX509Codec.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_key_rsa_RSAKeyPairX509Codec__ +#define __gnu_java_security_key_rsa_RSAKeyPairX509Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace key + { + namespace rsa + { + class RSAKeyPairX509Codec; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::key::rsa::RSAKeyPairX509Codec : public ::java::lang::Object +{ + +public: + RSAKeyPairX509Codec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodePublicKey(::java::security::PublicKey *); + virtual JArray< jbyte > * encodePrivateKey(::java::security::PrivateKey *); + virtual ::java::security::PublicKey * decodePublicKey(JArray< jbyte > *); + virtual ::java::security::PrivateKey * decodePrivateKey(JArray< jbyte > *); +private: + static ::java::util::logging::Logger * log; + static ::gnu::java::security::OID * RSA_ALG_OID; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_key_rsa_RSAKeyPairX509Codec__ diff --git a/libjava/gnu/java/security/pkcs/PKCS7Data.h b/libjava/gnu/java/security/pkcs/PKCS7Data.h new file mode 100644 index 000000000..5ec26a05f --- /dev/null +++ b/libjava/gnu/java/security/pkcs/PKCS7Data.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_pkcs_PKCS7Data__ +#define __gnu_java_security_pkcs_PKCS7Data__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace pkcs + { + class PKCS7Data; + } + } + } + } +} + +class gnu::java::security::pkcs::PKCS7Data : public ::java::lang::Object +{ + +public: + PKCS7Data(JArray< jbyte > *); + virtual JArray< jbyte > * getEncoded(); + static ::gnu::java::security::OID * PKCS7_DATA; +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) content; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_pkcs_PKCS7Data__ diff --git a/libjava/gnu/java/security/pkcs/PKCS7SignedData.h b/libjava/gnu/java/security/pkcs/PKCS7SignedData.h new file mode 100644 index 000000000..65b0b11e1 --- /dev/null +++ b/libjava/gnu/java/security/pkcs/PKCS7SignedData.h @@ -0,0 +1,81 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_pkcs_PKCS7SignedData__ +#define __gnu_java_security_pkcs_PKCS7SignedData__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace ber + { + class BERReader; + } + namespace pkcs + { + class PKCS7Data; + class PKCS7SignedData; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + namespace cert + { + class CRL; + class Certificate; + class X509CRL; + } + } + } +} + +class gnu::java::security::pkcs::PKCS7SignedData : public ::java::lang::Object +{ + +public: + PKCS7SignedData(::java::io::InputStream *); + PKCS7SignedData(::gnu::java::security::ber::BERReader *); + PKCS7SignedData(::java::util::Set *, ::gnu::java::security::pkcs::PKCS7Data *, JArray< ::java::security::cert::Certificate * > *, JArray< ::java::security::cert::X509CRL * > *, ::java::util::Set *); + virtual ::java::math::BigInteger * getVersion(); + virtual JArray< ::java::security::cert::Certificate * > * getCertificates(); + virtual ::gnu::java::security::OID * getContentType(); + virtual JArray< jbyte > * getContent(); + virtual ::java::util::Set * getDigestAlgorithms(); + virtual ::java::util::Set * getSignerInfos(); + virtual void encode(::java::io::OutputStream *); +private: + static ::java::util::logging::Logger * log; +public: + static ::gnu::java::security::OID * PKCS7_SIGNED_DATA; +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) version; + ::java::util::Set * digestAlgorithms; + ::gnu::java::security::OID * contentType; + JArray< jbyte > * content; + JArray< ::java::security::cert::Certificate * > * certificates; + JArray< ::java::security::cert::CRL * > * crls; + ::java::util::Set * signerInfos; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_pkcs_PKCS7SignedData__ diff --git a/libjava/gnu/java/security/pkcs/SignerInfo.h b/libjava/gnu/java/security/pkcs/SignerInfo.h new file mode 100644 index 000000000..5a020cff7 --- /dev/null +++ b/libjava/gnu/java/security/pkcs/SignerInfo.h @@ -0,0 +1,87 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_pkcs_SignerInfo__ +#define __gnu_java_security_pkcs_SignerInfo__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace ber + { + class BERReader; + } + namespace pkcs + { + class SignerInfo; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } + namespace javax + { + namespace security + { + namespace auth + { + namespace x500 + { + class X500Principal; + } + } + } + } +} + +class gnu::java::security::pkcs::SignerInfo : public ::java::lang::Object +{ + +public: + SignerInfo(::gnu::java::security::ber::BERReader *); + SignerInfo(::javax::security::auth::x500::X500Principal *, ::java::math::BigInteger *, ::gnu::java::security::OID *, JArray< jbyte > *, ::gnu::java::security::OID *, JArray< jbyte > *, JArray< jbyte > *); + virtual ::java::math::BigInteger * getVersion(); + virtual ::java::math::BigInteger * getSerialNumber(); + virtual ::javax::security::auth::x500::X500Principal * getIssuer(); + virtual ::gnu::java::security::OID * getDigestAlgorithmId(); + virtual JArray< jbyte > * getDigestAlgorithmParams(); + virtual JArray< jbyte > * getAuthenticatedAttributes(); + virtual ::gnu::java::security::OID * getDigestEncryptionAlgorithmId(); + virtual JArray< jbyte > * getDigestEncryptionAlgorithmParams(); + virtual JArray< jbyte > * getEncryptedDigest(); + virtual JArray< jbyte > * getUnauthenticatedAttributes(); + virtual void encode(::java::io::OutputStream *); +private: + static ::java::util::logging::Logger * log; + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::java::lang::Object)))) version; + ::java::math::BigInteger * serialNumber; + ::javax::security::auth::x500::X500Principal * issuer; + ::gnu::java::security::OID * digestAlgorithmId; + JArray< jbyte > * digestAlgorithmParams; + JArray< jbyte > * authenticatedAttributes; + ::gnu::java::security::OID * digestEncryptionAlgorithmId; + JArray< jbyte > * digestEncryptionAlgorithmParams; + JArray< jbyte > * encryptedDigest; + JArray< jbyte > * unauthenticatedAttributes; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_pkcs_SignerInfo__ diff --git a/libjava/gnu/java/security/prng/BasePRNG.h b/libjava/gnu/java/security/prng/BasePRNG.h new file mode 100644 index 000000000..4b20623ef --- /dev/null +++ b/libjava/gnu/java/security/prng/BasePRNG.h @@ -0,0 +1,59 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_BasePRNG__ +#define __gnu_java_security_prng_BasePRNG__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class BasePRNG; + } + } + } + } +} + +class gnu::java::security::prng::BasePRNG : public ::java::lang::Object +{ + +public: // actually protected + BasePRNG(::java::lang::String *); +public: + virtual ::java::lang::String * name(); + virtual void init(::java::util::Map *); + virtual jbyte nextByte(); + virtual void nextBytes(JArray< jbyte > *); + virtual void nextBytes(JArray< jbyte > *, jint, jint); + virtual void addRandomByte(jbyte); + virtual void addRandomBytes(JArray< jbyte > *); + virtual void addRandomBytes(JArray< jbyte > *, jint, jint); + virtual jboolean isInitialised(); +private: + jbyte nextByteInternal(); +public: + virtual ::java::lang::Object * clone(); + virtual void setup(::java::util::Map *) = 0; + virtual void fillBlock() = 0; +public: // actually protected + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name__; + jboolean initialised; + JArray< jbyte > * buffer; + jint ndx; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_prng_BasePRNG__ diff --git a/libjava/gnu/java/security/prng/EntropySource.h b/libjava/gnu/java/security/prng/EntropySource.h new file mode 100644 index 000000000..8f7377ac8 --- /dev/null +++ b/libjava/gnu/java/security/prng/EntropySource.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_EntropySource__ +#define __gnu_java_security_prng_EntropySource__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class EntropySource; + } + } + } + } +} + +class gnu::java::security::prng::EntropySource : public ::java::lang::Object +{ + +public: + virtual jdouble quality() = 0; + virtual JArray< jbyte > * nextBytes() = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_prng_EntropySource__ diff --git a/libjava/gnu/java/security/prng/IRandom.h b/libjava/gnu/java/security/prng/IRandom.h new file mode 100644 index 000000000..54a7373f6 --- /dev/null +++ b/libjava/gnu/java/security/prng/IRandom.h @@ -0,0 +1,44 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_IRandom__ +#define __gnu_java_security_prng_IRandom__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class IRandom; + } + } + } + } +} + +class gnu::java::security::prng::IRandom : public ::java::lang::Object +{ + +public: + virtual ::java::lang::String * name() = 0; + virtual void init(::java::util::Map *) = 0; + virtual jbyte nextByte() = 0; + virtual void nextBytes(JArray< jbyte > *, jint, jint) = 0; + virtual void addRandomByte(jbyte) = 0; + virtual void addRandomBytes(JArray< jbyte > *) = 0; + virtual void addRandomBytes(JArray< jbyte > *, jint, jint) = 0; + virtual ::java::lang::Object * clone() = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_prng_IRandom__ diff --git a/libjava/gnu/java/security/prng/LimitReachedException.h b/libjava/gnu/java/security/prng/LimitReachedException.h new file mode 100644 index 000000000..3dede836c --- /dev/null +++ b/libjava/gnu/java/security/prng/LimitReachedException.h @@ -0,0 +1,36 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_LimitReachedException__ +#define __gnu_java_security_prng_LimitReachedException__ + +#pragma interface + +#include <java/lang/Exception.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class LimitReachedException; + } + } + } + } +} + +class gnu::java::security::prng::LimitReachedException : public ::java::lang::Exception +{ + +public: + LimitReachedException(); + LimitReachedException(::java::lang::String *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_prng_LimitReachedException__ diff --git a/libjava/gnu/java/security/prng/MDGenerator.h b/libjava/gnu/java/security/prng/MDGenerator.h new file mode 100644 index 000000000..d14566c89 --- /dev/null +++ b/libjava/gnu/java/security/prng/MDGenerator.h @@ -0,0 +1,51 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_MDGenerator__ +#define __gnu_java_security_prng_MDGenerator__ + +#pragma interface + +#include <gnu/java/security/prng/BasePRNG.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + namespace prng + { + class MDGenerator; + } + } + } + } +} + +class gnu::java::security::prng::MDGenerator : public ::gnu::java::security::prng::BasePRNG +{ + +public: + MDGenerator(); + virtual void setup(::java::util::Map *); + virtual void fillBlock(); + virtual void addRandomByte(jbyte); + virtual void addRandomBytes(JArray< jbyte > *, jint, jint); + virtual ::java::lang::Object * clone(); + static ::java::lang::String * MD_NAME; + static ::java::lang::String * SEEED; +private: + ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::gnu::java::security::prng::BasePRNG)))) md; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_prng_MDGenerator__ diff --git a/libjava/gnu/java/security/prng/PRNGFactory.h b/libjava/gnu/java/security/prng/PRNGFactory.h new file mode 100644 index 000000000..a1e3f28cd --- /dev/null +++ b/libjava/gnu/java/security/prng/PRNGFactory.h @@ -0,0 +1,39 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_PRNGFactory__ +#define __gnu_java_security_prng_PRNGFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class IRandom; + class PRNGFactory; + } + } + } + } +} + +class gnu::java::security::prng::PRNGFactory : public ::java::lang::Object +{ + +public: // actually protected + PRNGFactory(); +public: + static ::gnu::java::security::prng::IRandom * getInstance(::java::lang::String *); + static ::java::util::Set * getNames(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_prng_PRNGFactory__ diff --git a/libjava/gnu/java/security/prng/RandomEvent.h b/libjava/gnu/java/security/prng/RandomEvent.h new file mode 100644 index 000000000..2b2639633 --- /dev/null +++ b/libjava/gnu/java/security/prng/RandomEvent.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_RandomEvent__ +#define __gnu_java_security_prng_RandomEvent__ + +#pragma interface + +#include <java/util/EventObject.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class RandomEvent; + } + } + } + } +} + +class gnu::java::security::prng::RandomEvent : public ::java::util::EventObject +{ + +public: + RandomEvent(::java::lang::Object *, jbyte, jbyte, JArray< jbyte > *); + virtual jbyte getSourceNumber(); + virtual jbyte getPoolNumber(); + virtual JArray< jbyte > * getData(); +private: + jbyte __attribute__((aligned(__alignof__( ::java::util::EventObject)))) sourceNumber; + jbyte poolNumber; + JArray< jbyte > * data; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_prng_RandomEvent__ diff --git a/libjava/gnu/java/security/prng/RandomEventListener.h b/libjava/gnu/java/security/prng/RandomEventListener.h new file mode 100644 index 000000000..5aef74bec --- /dev/null +++ b/libjava/gnu/java/security/prng/RandomEventListener.h @@ -0,0 +1,36 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_prng_RandomEventListener__ +#define __gnu_java_security_prng_RandomEventListener__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class RandomEvent; + class RandomEventListener; + } + } + } + } +} + +class gnu::java::security::prng::RandomEventListener : public ::java::lang::Object +{ + +public: + virtual void addRandomEvent(::gnu::java::security::prng::RandomEvent *) = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_prng_RandomEventListener__ diff --git a/libjava/gnu/java/security/provider/CollectionCertStoreImpl.h b/libjava/gnu/java/security/provider/CollectionCertStoreImpl.h new file mode 100644 index 000000000..947bfe5be --- /dev/null +++ b/libjava/gnu/java/security/provider/CollectionCertStoreImpl.h @@ -0,0 +1,52 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_provider_CollectionCertStoreImpl__ +#define __gnu_java_security_provider_CollectionCertStoreImpl__ + +#pragma interface + +#include <java/security/cert/CertStoreSpi.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace provider + { + class CollectionCertStoreImpl; + } + } + } + } + namespace java + { + namespace security + { + namespace cert + { + class CRLSelector; + class CertSelector; + class CertStoreParameters; + } + } + } +} + +class gnu::java::security::provider::CollectionCertStoreImpl : public ::java::security::cert::CertStoreSpi +{ + +public: + CollectionCertStoreImpl(::java::security::cert::CertStoreParameters *); + ::java::util::Collection * engineGetCertificates(::java::security::cert::CertSelector *); + ::java::util::Collection * engineGetCRLs(::java::security::cert::CRLSelector *); +private: + ::java::util::Collection * __attribute__((aligned(__alignof__( ::java::security::cert::CertStoreSpi)))) store; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_provider_CollectionCertStoreImpl__ diff --git a/libjava/gnu/java/security/provider/DefaultPolicy.h b/libjava/gnu/java/security/provider/DefaultPolicy.h new file mode 100644 index 000000000..b22595484 --- /dev/null +++ b/libjava/gnu/java/security/provider/DefaultPolicy.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_provider_DefaultPolicy__ +#define __gnu_java_security_provider_DefaultPolicy__ + +#pragma interface + +#include <java/security/Policy.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace provider + { + class DefaultPolicy; + } + } + } + } + namespace java + { + namespace security + { + class CodeSource; + class Permission; + class PermissionCollection; + } + } +} + +class gnu::java::security::provider::DefaultPolicy : public ::java::security::Policy +{ + +public: + DefaultPolicy(); + virtual ::java::security::PermissionCollection * getPermissions(::java::security::CodeSource *); + virtual void refresh(); +public: // actually package-private + static ::java::security::Permission * allPermission; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_provider_DefaultPolicy__ diff --git a/libjava/gnu/java/security/provider/Gnu$1.h b/libjava/gnu/java/security/provider/Gnu$1.h new file mode 100644 index 000000000..d9fda7337 --- /dev/null +++ b/libjava/gnu/java/security/provider/Gnu$1.h @@ -0,0 +1,41 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_provider_Gnu$1__ +#define __gnu_java_security_provider_Gnu$1__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace provider + { + class Gnu; + class Gnu$1; + } + } + } + } +} + +class gnu::java::security::provider::Gnu$1 : public ::java::lang::Object +{ + +public: // actually package-private + Gnu$1(::gnu::java::security::provider::Gnu *); +public: + virtual ::java::lang::Object * run(); +public: // actually package-private + ::gnu::java::security::provider::Gnu * __attribute__((aligned(__alignof__( ::java::lang::Object)))) this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_provider_Gnu$1__ diff --git a/libjava/gnu/java/security/provider/Gnu.h b/libjava/gnu/java/security/provider/Gnu.h new file mode 100644 index 000000000..78c78faa7 --- /dev/null +++ b/libjava/gnu/java/security/provider/Gnu.h @@ -0,0 +1,35 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_provider_Gnu__ +#define __gnu_java_security_provider_Gnu__ + +#pragma interface + +#include <java/security/Provider.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace provider + { + class Gnu; + } + } + } + } +} + +class gnu::java::security::provider::Gnu : public ::java::security::Provider +{ + +public: + Gnu(); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_provider_Gnu__ diff --git a/libjava/gnu/java/security/provider/PKIXCertPathValidatorImpl.h b/libjava/gnu/java/security/provider/PKIXCertPathValidatorImpl.h new file mode 100644 index 000000000..196a93a9a --- /dev/null +++ b/libjava/gnu/java/security/provider/PKIXCertPathValidatorImpl.h @@ -0,0 +1,67 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_provider_PKIXCertPathValidatorImpl__ +#define __gnu_java_security_provider_PKIXCertPathValidatorImpl__ + +#pragma interface + +#include <java/security/cert/CertPathValidatorSpi.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace provider + { + class PKIXCertPathValidatorImpl; + } + namespace x509 + { + class PolicyNodeImpl; + } + } + } + } + namespace java + { + namespace security + { + class PublicKey; + namespace cert + { + class CertPath; + class CertPathParameters; + class CertPathValidatorResult; + class PKIXParameters; + class X509CRL; + class X509Certificate; + } + } + } +} + +class gnu::java::security::provider::PKIXCertPathValidatorImpl : public ::java::security::cert::CertPathValidatorSpi +{ + +public: + PKIXCertPathValidatorImpl(); + virtual ::java::security::cert::CertPathValidatorResult * engineValidate(::java::security::cert::CertPath *, ::java::security::cert::CertPathParameters *); +private: + static jboolean checkCRL(::java::security::cert::X509CRL *, JArray< ::java::security::cert::X509Certificate * > *, ::java::util::Date *, ::java::security::cert::X509Certificate *, ::java::security::PublicKey *, ::java::util::List *); + static ::java::util::Set * getCritExts(::java::security::cert::X509Certificate *); + static void basicSanity(JArray< ::java::security::cert::X509Certificate * > *, jint); + static void updatePolicyTree(::java::security::cert::X509Certificate *, ::gnu::java::security::x509::PolicyNodeImpl *, jint, ::java::security::cert::PKIXParameters *, jboolean); + jboolean checkExplicitPolicy(jint, ::java::util::List *); + static ::java::util::logging::Logger * log; +public: + static ::java::lang::String * ANY_POLICY; + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_provider_PKIXCertPathValidatorImpl__ diff --git a/libjava/gnu/java/security/provider/X509CertificateFactory.h b/libjava/gnu/java/security/provider/X509CertificateFactory.h new file mode 100644 index 000000000..67fdd9067 --- /dev/null +++ b/libjava/gnu/java/security/provider/X509CertificateFactory.h @@ -0,0 +1,68 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_provider_X509CertificateFactory__ +#define __gnu_java_security_provider_X509CertificateFactory__ + +#pragma interface + +#include <java/security/cert/CertificateFactorySpi.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace provider + { + class X509CertificateFactory; + } + namespace x509 + { + class X509CRL; + class X509Certificate; + } + } + } + } + namespace java + { + namespace security + { + namespace cert + { + class CRL; + class CertPath; + class Certificate; + } + } + } +} + +class gnu::java::security::provider::X509CertificateFactory : public ::java::security::cert::CertificateFactorySpi +{ + +public: + X509CertificateFactory(); + virtual ::java::security::cert::Certificate * engineGenerateCertificate(::java::io::InputStream *); + virtual ::java::util::Collection * engineGenerateCertificates(::java::io::InputStream *); + virtual ::java::security::cert::CRL * engineGenerateCRL(::java::io::InputStream *); + virtual ::java::util::Collection * engineGenerateCRLs(::java::io::InputStream *); + virtual ::java::security::cert::CertPath * engineGenerateCertPath(::java::util::List *); + virtual ::java::security::cert::CertPath * engineGenerateCertPath(::java::io::InputStream *); + virtual ::java::security::cert::CertPath * engineGenerateCertPath(::java::io::InputStream *, ::java::lang::String *); + virtual ::java::util::Iterator * engineGetCertPathEncodings(); +private: + ::gnu::java::security::x509::X509Certificate * generateCert(::java::io::InputStream *); + ::gnu::java::security::x509::X509CRL * generateCRL(::java::io::InputStream *); +public: + static ::java::lang::String * BEGIN_CERTIFICATE; + static ::java::lang::String * END_CERTIFICATE; + static ::java::lang::String * BEGIN_X509_CRL; + static ::java::lang::String * END_X509_CRL; + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_provider_X509CertificateFactory__ diff --git a/libjava/gnu/java/security/sig/BaseSignature.h b/libjava/gnu/java/security/sig/BaseSignature.h new file mode 100644 index 000000000..2f4ab0e98 --- /dev/null +++ b/libjava/gnu/java/security/sig/BaseSignature.h @@ -0,0 +1,86 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_BaseSignature__ +#define __gnu_java_security_sig_BaseSignature__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + namespace prng + { + class IRandom; + } + namespace sig + { + class BaseSignature; + } + namespace util + { + class PRNG; + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::sig::BaseSignature : public ::java::lang::Object +{ + +public: // actually protected + BaseSignature(::java::lang::String *, ::gnu::java::security::hash::IMessageDigest *); +public: + virtual ::java::lang::String * name(); + virtual void setupVerify(::java::util::Map *); + virtual void setupSign(::java::util::Map *); + virtual void update(jbyte); + virtual void update(JArray< jbyte > *, jint, jint); + virtual ::java::lang::Object * sign(); + virtual jboolean verify(::java::lang::Object *); + virtual ::java::lang::Object * clone() = 0; +public: // actually protected + virtual void setupForVerification(::java::security::PublicKey *) = 0; + virtual void setupForSigning(::java::security::PrivateKey *) = 0; + virtual ::java::lang::Object * generateSignature() = 0; + virtual jboolean verifySignature(::java::lang::Object *) = 0; + virtual void init(); + virtual void nextRandomBytes(JArray< jbyte > *); +private: + void setup(::java::util::Map *); + ::gnu::java::security::util::PRNG * getDefaultPRNG(); +public: // actually protected + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) schemeName; + ::gnu::java::security::hash::IMessageDigest * md; + ::java::security::PublicKey * publicKey; + ::java::security::PrivateKey * privateKey; +private: + ::java::util::Random * rnd; + ::gnu::java::security::prng::IRandom * irnd; + ::gnu::java::security::util::PRNG * prng; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_BaseSignature__ diff --git a/libjava/gnu/java/security/sig/ISignature.h b/libjava/gnu/java/security/sig/ISignature.h new file mode 100644 index 000000000..b02f28f5f --- /dev/null +++ b/libjava/gnu/java/security/sig/ISignature.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_ISignature__ +#define __gnu_java_security_sig_ISignature__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + class ISignature; + } + } + } + } +} + +class gnu::java::security::sig::ISignature : public ::java::lang::Object +{ + +public: + virtual ::java::lang::String * name() = 0; + virtual void setupVerify(::java::util::Map *) = 0; + virtual void setupSign(::java::util::Map *) = 0; + virtual void update(jbyte) = 0; + virtual void update(JArray< jbyte > *, jint, jint) = 0; + virtual ::java::lang::Object * sign() = 0; + virtual jboolean verify(::java::lang::Object *) = 0; + virtual ::java::lang::Object * clone() = 0; + static ::java::lang::String * VERIFIER_KEY; + static ::java::lang::String * SIGNER_KEY; + static ::java::lang::String * SOURCE_OF_RANDOMNESS; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_sig_ISignature__ diff --git a/libjava/gnu/java/security/sig/ISignatureCodec.h b/libjava/gnu/java/security/sig/ISignatureCodec.h new file mode 100644 index 000000000..8924c1224 --- /dev/null +++ b/libjava/gnu/java/security/sig/ISignatureCodec.h @@ -0,0 +1,40 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_ISignatureCodec__ +#define __gnu_java_security_sig_ISignatureCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + class ISignatureCodec; + } + } + } + } +} + +class gnu::java::security::sig::ISignatureCodec : public ::java::lang::Object +{ + +public: + virtual jint getFormatID() = 0; + virtual JArray< jbyte > * encodeSignature(::java::lang::Object *) = 0; + virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *) = 0; + static const jint RAW_FORMAT = 1; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_sig_ISignatureCodec__ diff --git a/libjava/gnu/java/security/sig/SignatureCodecFactory.h b/libjava/gnu/java/security/sig/SignatureCodecFactory.h new file mode 100644 index 000000000..56295cbe3 --- /dev/null +++ b/libjava/gnu/java/security/sig/SignatureCodecFactory.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_SignatureCodecFactory__ +#define __gnu_java_security_sig_SignatureCodecFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + class ISignatureCodec; + class SignatureCodecFactory; + } + } + } + } +} + +class gnu::java::security::sig::SignatureCodecFactory : public ::java::lang::Object +{ + + SignatureCodecFactory(); +public: + static ::gnu::java::security::sig::ISignatureCodec * getInstance(::java::lang::String *); + static ::gnu::java::security::sig::ISignatureCodec * getInstance(::java::lang::String *, ::java::lang::String *); + static ::gnu::java::security::sig::ISignatureCodec * getInstance(::java::lang::String *, jint); + static ::java::util::Set * getNames(); +private: + static ::gnu::java::security::sig::ISignatureCodec * getRawCodec(::java::lang::String *); + static ::gnu::java::security::sig::ISignatureCodec * getX509Codec(::java::lang::String *); + static ::java::util::Set * names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_SignatureCodecFactory__ diff --git a/libjava/gnu/java/security/sig/SignatureFactory.h b/libjava/gnu/java/security/sig/SignatureFactory.h new file mode 100644 index 000000000..344c34c84 --- /dev/null +++ b/libjava/gnu/java/security/sig/SignatureFactory.h @@ -0,0 +1,41 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_SignatureFactory__ +#define __gnu_java_security_sig_SignatureFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + class ISignature; + class SignatureFactory; + } + } + } + } +} + +class gnu::java::security::sig::SignatureFactory : public ::java::lang::Object +{ + + SignatureFactory(); +public: + static ::gnu::java::security::sig::ISignature * getInstance(::java::lang::String *); + static ::java::util::Set * getNames(); +private: + static ::java::util::Set * names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_SignatureFactory__ diff --git a/libjava/gnu/java/security/sig/dss/DSSSignature.h b/libjava/gnu/java/security/sig/dss/DSSSignature.h new file mode 100644 index 000000000..96781ef3d --- /dev/null +++ b/libjava/gnu/java/security/sig/dss/DSSSignature.h @@ -0,0 +1,80 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_dss_DSSSignature__ +#define __gnu_java_security_sig_dss_DSSSignature__ + +#pragma interface + +#include <gnu/java/security/sig/BaseSignature.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class IRandom; + } + namespace sig + { + namespace dss + { + class DSSSignature; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class PrivateKey; + class PublicKey; + namespace interfaces + { + class DSAPrivateKey; + class DSAPublicKey; + } + } + } +} + +class gnu::java::security::sig::dss::DSSSignature : public ::gnu::java::security::sig::BaseSignature +{ + +public: + DSSSignature(); +private: + DSSSignature(::gnu::java::security::sig::dss::DSSSignature *); +public: + static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *); + static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *, ::java::util::Random *); + static JArray< ::java::math::BigInteger * > * sign(::java::security::interfaces::DSAPrivateKey *, JArray< jbyte > *, ::gnu::java::security::prng::IRandom *); + static jboolean verify(::java::security::interfaces::DSAPublicKey *, JArray< jbyte > *, JArray< ::java::math::BigInteger * > *); + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void setupForVerification(::java::security::PublicKey *); + virtual void setupForSigning(::java::security::PrivateKey *); + virtual ::java::lang::Object * generateSignature(); + virtual jboolean verifySignature(::java::lang::Object *); +private: + ::java::lang::Object * encodeSignature(::java::math::BigInteger *, ::java::math::BigInteger *); + JArray< ::java::math::BigInteger * > * decodeSignature(::java::lang::Object *); + JArray< ::java::math::BigInteger * > * computeRS(JArray< jbyte > *); + jboolean checkRS(JArray< ::java::math::BigInteger * > *, JArray< jbyte > *); +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_dss_DSSSignature__ diff --git a/libjava/gnu/java/security/sig/dss/DSSSignatureRawCodec.h b/libjava/gnu/java/security/sig/dss/DSSSignatureRawCodec.h new file mode 100644 index 000000000..5229cdd31 --- /dev/null +++ b/libjava/gnu/java/security/sig/dss/DSSSignatureRawCodec.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_dss_DSSSignatureRawCodec__ +#define __gnu_java_security_sig_dss_DSSSignatureRawCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + namespace dss + { + class DSSSignatureRawCodec; + } + } + } + } + } +} + +class gnu::java::security::sig::dss::DSSSignatureRawCodec : public ::java::lang::Object +{ + +public: + DSSSignatureRawCodec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodeSignature(::java::lang::Object *); + virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_dss_DSSSignatureRawCodec__ diff --git a/libjava/gnu/java/security/sig/dss/DSSSignatureX509Codec.h b/libjava/gnu/java/security/sig/dss/DSSSignatureX509Codec.h new file mode 100644 index 000000000..d7428b37c --- /dev/null +++ b/libjava/gnu/java/security/sig/dss/DSSSignatureX509Codec.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_dss_DSSSignatureX509Codec__ +#define __gnu_java_security_sig_dss_DSSSignatureX509Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + namespace dss + { + class DSSSignatureX509Codec; + } + } + } + } + } +} + +class gnu::java::security::sig::dss::DSSSignatureX509Codec : public ::java::lang::Object +{ + +public: + DSSSignatureX509Codec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodeSignature(::java::lang::Object *); + virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_dss_DSSSignatureX509Codec__ diff --git a/libjava/gnu/java/security/sig/rsa/EME_PKCS1_V1_5.h b/libjava/gnu/java/security/sig/rsa/EME_PKCS1_V1_5.h new file mode 100644 index 000000000..a0c3987ab --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/EME_PKCS1_V1_5.h @@ -0,0 +1,70 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_EME_PKCS1_V1_5__ +#define __gnu_java_security_sig_rsa_EME_PKCS1_V1_5__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class IRandom; + } + namespace sig + { + namespace rsa + { + class EME_PKCS1_V1_5; + } + } + namespace util + { + class PRNG; + } + } + } + } + namespace java + { + namespace security + { + namespace interfaces + { + class RSAKey; + } + } + } +} + +class gnu::java::security::sig::rsa::EME_PKCS1_V1_5 : public ::java::lang::Object +{ + + EME_PKCS1_V1_5(jint); +public: + static ::gnu::java::security::sig::rsa::EME_PKCS1_V1_5 * getInstance(jint); + static ::gnu::java::security::sig::rsa::EME_PKCS1_V1_5 * getInstance(::java::security::interfaces::RSAKey *); + virtual JArray< jbyte > * encode(JArray< jbyte > *); + virtual JArray< jbyte > * encode(JArray< jbyte > *, ::gnu::java::security::prng::IRandom *); + virtual JArray< jbyte > * encode(JArray< jbyte > *, ::java::util::Random *); + virtual JArray< jbyte > * decode(JArray< jbyte > *); +private: + JArray< jbyte > * assembleEM(JArray< jbyte > *, JArray< jbyte > *); + jint __attribute__((aligned(__alignof__( ::java::lang::Object)))) k; + ::java::io::ByteArrayOutputStream * baos; + ::gnu::java::security::util::PRNG * prng; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_EME_PKCS1_V1_5__ diff --git a/libjava/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.h b/libjava/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.h new file mode 100644 index 000000000..780e29d8a --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/EMSA_PKCS1_V1_5.h @@ -0,0 +1,58 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_EMSA_PKCS1_V1_5__ +#define __gnu_java_security_sig_rsa_EMSA_PKCS1_V1_5__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + namespace sig + { + namespace rsa + { + class EMSA_PKCS1_V1_5; + } + } + } + } + } +} + +class gnu::java::security::sig::rsa::EMSA_PKCS1_V1_5 : public ::java::lang::Object +{ + + EMSA_PKCS1_V1_5(::gnu::java::security::hash::IMessageDigest *); +public: + static ::gnu::java::security::sig::rsa::EMSA_PKCS1_V1_5 * getInstance(::java::lang::String *); + virtual ::java::lang::Object * clone(); + virtual JArray< jbyte > * encode(JArray< jbyte > *, jint); +private: + static JArray< jbyte > * MD2_PREFIX; + static JArray< jbyte > * MD5_PREFIX; + static JArray< jbyte > * SHA160_PREFIX; + static JArray< jbyte > * SHA256_PREFIX; + static JArray< jbyte > * SHA384_PREFIX; + static JArray< jbyte > * SHA512_PREFIX; + ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::lang::Object)))) hash; + jint hLen; + JArray< jbyte > * prefix; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_EMSA_PKCS1_V1_5__ diff --git a/libjava/gnu/java/security/sig/rsa/EMSA_PSS.h b/libjava/gnu/java/security/sig/rsa/EMSA_PSS.h new file mode 100644 index 000000000..3a8503233 --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/EMSA_PSS.h @@ -0,0 +1,54 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_EMSA_PSS__ +#define __gnu_java_security_sig_rsa_EMSA_PSS__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + namespace sig + { + namespace rsa + { + class EMSA_PSS; + } + } + } + } + } +} + +class gnu::java::security::sig::rsa::EMSA_PSS : public ::java::lang::Object +{ + + EMSA_PSS(::gnu::java::security::hash::IMessageDigest *); +public: + static ::gnu::java::security::sig::rsa::EMSA_PSS * getInstance(::java::lang::String *); + virtual ::java::lang::Object * clone(); + virtual JArray< jbyte > * encode(JArray< jbyte > *, jint, JArray< jbyte > *); + virtual jboolean decode(JArray< jbyte > *, JArray< jbyte > *, jint, jint); +private: + JArray< jbyte > * MGF(JArray< jbyte > *, jint); + static ::java::util::logging::Logger * log; + ::gnu::java::security::hash::IMessageDigest * __attribute__((aligned(__alignof__( ::java::lang::Object)))) hash; + jint hLen; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_EMSA_PSS__ diff --git a/libjava/gnu/java/security/sig/rsa/RSA.h b/libjava/gnu/java/security/sig/rsa/RSA.h new file mode 100644 index 000000000..5ad511491 --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/RSA.h @@ -0,0 +1,74 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_RSA__ +#define __gnu_java_security_sig_rsa_RSA__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + namespace rsa + { + class RSA; + } + } + namespace util + { + class PRNG; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class PrivateKey; + class PublicKey; + namespace interfaces + { + class RSAPrivateKey; + class RSAPublicKey; + } + } + } +} + +class gnu::java::security::sig::rsa::RSA : public ::java::lang::Object +{ + + RSA(); +public: + static ::java::math::BigInteger * sign(::java::security::PrivateKey *, ::java::math::BigInteger *); + static ::java::math::BigInteger * verify(::java::security::PublicKey *, ::java::math::BigInteger *); + static ::java::math::BigInteger * encrypt(::java::security::PublicKey *, ::java::math::BigInteger *); + static ::java::math::BigInteger * decrypt(::java::security::PrivateKey *, ::java::math::BigInteger *); + static JArray< jbyte > * I2OSP(::java::math::BigInteger *, jint); +private: + static ::java::math::BigInteger * RSAEP(::java::security::interfaces::RSAPublicKey *, ::java::math::BigInteger *); + static ::java::math::BigInteger * RSADP(::java::security::interfaces::RSAPrivateKey *, ::java::math::BigInteger *); + static ::java::math::BigInteger * newR(::java::math::BigInteger *); + static ::java::math::BigInteger * ZERO; + static ::java::math::BigInteger * ONE; + static ::gnu::java::security::util::PRNG * prng; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_RSA__ diff --git a/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.h b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.h new file mode 100644 index 000000000..082229302 --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5Signature.h @@ -0,0 +1,65 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_RSAPKCS1V1_5Signature__ +#define __gnu_java_security_sig_rsa_RSAPKCS1V1_5Signature__ + +#pragma interface + +#include <gnu/java/security/sig/BaseSignature.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + namespace sig + { + namespace rsa + { + class EMSA_PKCS1_V1_5; + class RSAPKCS1V1_5Signature; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::sig::rsa::RSAPKCS1V1_5Signature : public ::gnu::java::security::sig::BaseSignature +{ + +public: + RSAPKCS1V1_5Signature(); + RSAPKCS1V1_5Signature(::java::lang::String *); + RSAPKCS1V1_5Signature(::gnu::java::security::hash::IMessageDigest *); +private: + RSAPKCS1V1_5Signature(::gnu::java::security::sig::rsa::RSAPKCS1V1_5Signature *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void setupForVerification(::java::security::PublicKey *); + virtual void setupForSigning(::java::security::PrivateKey *); + virtual ::java::lang::Object * generateSignature(); + virtual jboolean verifySignature(::java::lang::Object *); +private: + ::gnu::java::security::sig::rsa::EMSA_PKCS1_V1_5 * __attribute__((aligned(__alignof__( ::gnu::java::security::sig::BaseSignature)))) pkcs1; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_RSAPKCS1V1_5Signature__ diff --git a/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.h b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.h new file mode 100644 index 000000000..2fe018f9e --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureRawCodec.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureRawCodec__ +#define __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureRawCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + namespace rsa + { + class RSAPKCS1V1_5SignatureRawCodec; + } + } + } + } + } +} + +class gnu::java::security::sig::rsa::RSAPKCS1V1_5SignatureRawCodec : public ::java::lang::Object +{ + +public: + RSAPKCS1V1_5SignatureRawCodec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodeSignature(::java::lang::Object *); + virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureRawCodec__ diff --git a/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.h b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.h new file mode 100644 index 000000000..4e9da2abc --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/RSAPKCS1V1_5SignatureX509Codec.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureX509Codec__ +#define __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureX509Codec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + namespace rsa + { + class RSAPKCS1V1_5SignatureX509Codec; + } + } + } + } + } +} + +class gnu::java::security::sig::rsa::RSAPKCS1V1_5SignatureX509Codec : public ::java::lang::Object +{ + +public: + RSAPKCS1V1_5SignatureX509Codec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodeSignature(::java::lang::Object *); + virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_RSAPKCS1V1_5SignatureX509Codec__ diff --git a/libjava/gnu/java/security/sig/rsa/RSAPSSSignature.h b/libjava/gnu/java/security/sig/rsa/RSAPSSSignature.h new file mode 100644 index 000000000..436088972 --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/RSAPSSSignature.h @@ -0,0 +1,68 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_RSAPSSSignature__ +#define __gnu_java_security_sig_rsa_RSAPSSSignature__ + +#pragma interface + +#include <gnu/java/security/sig/BaseSignature.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace hash + { + class IMessageDigest; + } + namespace sig + { + namespace rsa + { + class EMSA_PSS; + class RSAPSSSignature; + } + } + } + } + } + namespace java + { + namespace security + { + class PrivateKey; + class PublicKey; + } + } +} + +class gnu::java::security::sig::rsa::RSAPSSSignature : public ::gnu::java::security::sig::BaseSignature +{ + +public: + RSAPSSSignature(); + RSAPSSSignature(::java::lang::String *); + RSAPSSSignature(::java::lang::String *, jint); + RSAPSSSignature(::gnu::java::security::hash::IMessageDigest *, jint); +private: + RSAPSSSignature(::gnu::java::security::sig::rsa::RSAPSSSignature *); +public: + virtual ::java::lang::Object * clone(); +public: // actually protected + virtual void setupForVerification(::java::security::PublicKey *); + virtual void setupForSigning(::java::security::PrivateKey *); + virtual ::java::lang::Object * generateSignature(); + virtual jboolean verifySignature(::java::lang::Object *); +private: + static ::java::util::logging::Logger * log; + ::gnu::java::security::sig::rsa::EMSA_PSS * __attribute__((aligned(__alignof__( ::gnu::java::security::sig::BaseSignature)))) pss; + jint sLen; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_RSAPSSSignature__ diff --git a/libjava/gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.h b/libjava/gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.h new file mode 100644 index 000000000..a7efde340 --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/RSAPSSSignatureRawCodec.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_RSAPSSSignatureRawCodec__ +#define __gnu_java_security_sig_rsa_RSAPSSSignatureRawCodec__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + namespace rsa + { + class RSAPSSSignatureRawCodec; + } + } + } + } + } +} + +class gnu::java::security::sig::rsa::RSAPSSSignatureRawCodec : public ::java::lang::Object +{ + +public: + RSAPSSSignatureRawCodec(); + virtual jint getFormatID(); + virtual JArray< jbyte > * encodeSignature(::java::lang::Object *); + virtual ::java::lang::Object * decodeSignature(JArray< jbyte > *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_RSAPSSSignatureRawCodec__ diff --git a/libjava/gnu/java/security/sig/rsa/RSASignatureFactory.h b/libjava/gnu/java/security/sig/rsa/RSASignatureFactory.h new file mode 100644 index 000000000..c8b9b2497 --- /dev/null +++ b/libjava/gnu/java/security/sig/rsa/RSASignatureFactory.h @@ -0,0 +1,46 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_sig_rsa_RSASignatureFactory__ +#define __gnu_java_security_sig_rsa_RSASignatureFactory__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace sig + { + class ISignature; + namespace rsa + { + class RSASignatureFactory; + } + } + } + } + } +} + +class gnu::java::security::sig::rsa::RSASignatureFactory : public ::java::lang::Object +{ + + RSASignatureFactory(); +public: + static ::gnu::java::security::sig::ISignature * getInstance(::java::lang::String *); + static ::java::util::Set * getNames(); +private: + static ::gnu::java::security::sig::ISignature * getPSSSignature(::java::lang::String *); + static ::gnu::java::security::sig::ISignature * getPKCS1Signature(::java::lang::String *); + static ::java::util::Set * names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_sig_rsa_RSASignatureFactory__ diff --git a/libjava/gnu/java/security/util/ByteArray.h b/libjava/gnu/java/security/util/ByteArray.h new file mode 100644 index 000000000..6eef185dc --- /dev/null +++ b/libjava/gnu/java/security/util/ByteArray.h @@ -0,0 +1,44 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_ByteArray__ +#define __gnu_java_security_util_ByteArray__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class ByteArray; + } + } + } + } +} + +class gnu::java::security::util::ByteArray : public ::java::lang::Object +{ + +public: + ByteArray(JArray< jbyte > *); + JArray< jbyte > * getValue(); + ::java::lang::String * toString(); + static ::java::lang::String * toHexString(JArray< jbyte > *, jint, jint, jchar); + static ::java::lang::String * formatInt(jint, jint, jint); +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) value; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_ByteArray__ diff --git a/libjava/gnu/java/security/util/ByteBufferOutputStream.h b/libjava/gnu/java/security/util/ByteBufferOutputStream.h new file mode 100644 index 000000000..cfb43d399 --- /dev/null +++ b/libjava/gnu/java/security/util/ByteBufferOutputStream.h @@ -0,0 +1,54 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_ByteBufferOutputStream__ +#define __gnu_java_security_util_ByteBufferOutputStream__ + +#pragma interface + +#include <java/io/OutputStream.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class ByteBufferOutputStream; + } + } + } + } + namespace java + { + namespace nio + { + class ByteBuffer; + } + } +} + +class gnu::java::security::util::ByteBufferOutputStream : public ::java::io::OutputStream +{ + +public: + ByteBufferOutputStream(); + ByteBufferOutputStream(jint); + virtual void write(jint); + virtual void write(JArray< jbyte > *, jint, jint); + virtual void write(JArray< jbyte > *); + virtual ::java::nio::ByteBuffer * buffer(); + virtual ::java::lang::String * toString(); +private: + void growBuffer(); + ::java::nio::ByteBuffer * __attribute__((aligned(__alignof__( ::java::io::OutputStream)))) buffer__; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_ByteBufferOutputStream__ diff --git a/libjava/gnu/java/security/util/DerUtil.h b/libjava/gnu/java/security/util/DerUtil.h new file mode 100644 index 000000000..42ec67e7e --- /dev/null +++ b/libjava/gnu/java/security/util/DerUtil.h @@ -0,0 +1,41 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_DerUtil__ +#define __gnu_java_security_util_DerUtil__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace der + { + class DERValue; + } + namespace util + { + class DerUtil; + } + } + } + } +} + +class gnu::java::security::util::DerUtil : public ::java::lang::Object +{ + +public: + DerUtil(); + static void checkIsConstructed(::gnu::java::security::der::DERValue *, ::java::lang::String *); + static void checkIsBigInteger(::gnu::java::security::der::DERValue *, ::java::lang::String *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_DerUtil__ diff --git a/libjava/gnu/java/security/util/ExpirableObject$Destroyer.h b/libjava/gnu/java/security/util/ExpirableObject$Destroyer.h new file mode 100644 index 000000000..8d39fbb7d --- /dev/null +++ b/libjava/gnu/java/security/util/ExpirableObject$Destroyer.h @@ -0,0 +1,43 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_ExpirableObject$Destroyer__ +#define __gnu_java_security_util_ExpirableObject$Destroyer__ + +#pragma interface + +#include <java/util/TimerTask.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class ExpirableObject; + class ExpirableObject$Destroyer; + } + } + } + } +} + +class gnu::java::security::util::ExpirableObject$Destroyer : public ::java::util::TimerTask +{ + +public: // actually package-private + ExpirableObject$Destroyer(::gnu::java::security::util::ExpirableObject *, ::gnu::java::security::util::ExpirableObject *); +public: + void run(); +private: + ::gnu::java::security::util::ExpirableObject * __attribute__((aligned(__alignof__( ::java::util::TimerTask)))) target; +public: // actually package-private + ::gnu::java::security::util::ExpirableObject * this$0; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_ExpirableObject$Destroyer__ diff --git a/libjava/gnu/java/security/util/ExpirableObject.h b/libjava/gnu/java/security/util/ExpirableObject.h new file mode 100644 index 000000000..094dc718a --- /dev/null +++ b/libjava/gnu/java/security/util/ExpirableObject.h @@ -0,0 +1,48 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_ExpirableObject__ +#define __gnu_java_security_util_ExpirableObject__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class ExpirableObject; + class ExpirableObject$Destroyer; + } + } + } + } +} + +class gnu::java::security::util::ExpirableObject : public ::java::lang::Object +{ + +public: // actually protected + ExpirableObject(); + ExpirableObject(jlong); +public: + virtual void destroy(); +public: // actually protected + virtual void doDestroy() = 0; +public: + virtual jboolean isDestroyed() = 0; + static const jlong DEFAULT_TIMEOUT = 3600000LL; +private: + static ::java::util::Timer * EXPIRER; + ::gnu::java::security::util::ExpirableObject$Destroyer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) destroyer; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_ExpirableObject__ diff --git a/libjava/gnu/java/security/util/FormatUtil.h b/libjava/gnu/java/security/util/FormatUtil.h new file mode 100644 index 000000000..019395d19 --- /dev/null +++ b/libjava/gnu/java/security/util/FormatUtil.h @@ -0,0 +1,38 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_FormatUtil__ +#define __gnu_java_security_util_FormatUtil__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class FormatUtil; + } + } + } + } +} + +class gnu::java::security::util::FormatUtil : public ::java::lang::Object +{ + + FormatUtil(); +public: + static ::java::lang::String * getEncodingName(jint); + static ::java::lang::String * getEncodingShortName(jint); + static jint getFormatID(::java::lang::String *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_FormatUtil__ diff --git a/libjava/gnu/java/security/util/IntegerUtil$1.h b/libjava/gnu/java/security/util/IntegerUtil$1.h new file mode 100644 index 000000000..03d9674f9 --- /dev/null +++ b/libjava/gnu/java/security/util/IntegerUtil$1.h @@ -0,0 +1,37 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_IntegerUtil$1__ +#define __gnu_java_security_util_IntegerUtil$1__ + +#pragma interface + +#include <java/util/LinkedHashMap.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class IntegerUtil$1; + } + } + } + } +} + +class gnu::java::security::util::IntegerUtil$1 : public ::java::util::LinkedHashMap +{ + +public: // actually package-private + IntegerUtil$1(jint, jfloat, jboolean); +public: + virtual jboolean removeEldestEntry(::java::util::Map$Entry *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_IntegerUtil$1__ diff --git a/libjava/gnu/java/security/util/IntegerUtil.h b/libjava/gnu/java/security/util/IntegerUtil.h new file mode 100644 index 000000000..96a7b24b2 --- /dev/null +++ b/libjava/gnu/java/security/util/IntegerUtil.h @@ -0,0 +1,41 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_IntegerUtil__ +#define __gnu_java_security_util_IntegerUtil__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class IntegerUtil; + } + } + } + } +} + +class gnu::java::security::util::IntegerUtil : public ::java::lang::Object +{ + + IntegerUtil(); +public: + static ::java::lang::Integer * valueOf(::java::lang::String *); + static ::java::lang::Integer * valueOf(jint); +private: + static const jint CACHE_SIZE = 100; + static ::java::util::Map * cache; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_IntegerUtil__ diff --git a/libjava/gnu/java/security/util/PRNG.h b/libjava/gnu/java/security/util/PRNG.h new file mode 100644 index 000000000..48b45d749 --- /dev/null +++ b/libjava/gnu/java/security/util/PRNG.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_PRNG__ +#define __gnu_java_security_util_PRNG__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace prng + { + class IRandom; + } + namespace util + { + class PRNG; + } + } + } + } +} + +class gnu::java::security::util::PRNG : public ::java::lang::Object +{ + + PRNG(::gnu::java::security::prng::IRandom *); +public: + static ::gnu::java::security::util::PRNG * getInstance(); + virtual void nextBytes(JArray< jbyte > *); + virtual void nextBytes(JArray< jbyte > *, jint, jint); +private: + ::gnu::java::security::prng::IRandom * __attribute__((aligned(__alignof__( ::java::lang::Object)))) delegate; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_PRNG__ diff --git a/libjava/gnu/java/security/util/Prime.h b/libjava/gnu/java/security/util/Prime.h new file mode 100644 index 000000000..3dd531300 --- /dev/null +++ b/libjava/gnu/java/security/util/Prime.h @@ -0,0 +1,44 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_Prime__ +#define __gnu_java_security_util_Prime__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class Prime; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::util::Prime : public ::java::lang::Object +{ + +public: + Prime(); + static ::java::math::BigInteger * generateRandomPrime(jint, jint, ::java::math::BigInteger *); + static ::java::math::BigInteger * generateRandomPrime(::java::math::BigInteger *, ::java::math::BigInteger *, jint, jint, ::java::math::BigInteger *); + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_Prime__ diff --git a/libjava/gnu/java/security/util/Sequence.h b/libjava/gnu/java/security/util/Sequence.h new file mode 100644 index 000000000..881c5ff90 --- /dev/null +++ b/libjava/gnu/java/security/util/Sequence.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_Sequence__ +#define __gnu_java_security_util_Sequence__ + +#pragma interface + +#include <java/util/AbstractList.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class Sequence; + } + } + } + } +} + +class gnu::java::security::util::Sequence : public ::java::util::AbstractList +{ + +public: + Sequence(jint); + Sequence(jint, jint); + Sequence(jint, jint, jint); + ::java::lang::Object * get(jint); + jint size(); + JArray< ::java::lang::Object * > * toArray(); +private: + JArray< ::java::lang::Integer * > * __attribute__((aligned(__alignof__( ::java::util::AbstractList)))) sequence; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_Sequence__ diff --git a/libjava/gnu/java/security/util/SimpleList.h b/libjava/gnu/java/security/util/SimpleList.h new file mode 100644 index 000000000..dc3c1c77d --- /dev/null +++ b/libjava/gnu/java/security/util/SimpleList.h @@ -0,0 +1,48 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_SimpleList__ +#define __gnu_java_security_util_SimpleList__ + +#pragma interface + +#include <java/util/AbstractList.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class SimpleList; + } + } + } + } +} + +class gnu::java::security::util::SimpleList : public ::java::util::AbstractList +{ + +public: + SimpleList(::java::lang::Object *); + SimpleList(::java::lang::Object *, ::java::lang::Object *); + SimpleList(::java::lang::Object *, ::java::lang::Object *, ::java::lang::Object *); + SimpleList(::java::lang::Object *, ::java::lang::Object *, ::java::lang::Object *, ::java::lang::Object *); + SimpleList(); + SimpleList(::java::util::Collection *); + jint size(); + ::java::lang::Object * get(jint); + ::java::lang::String * toString(); +private: + JArray< ::java::lang::Object * > * __attribute__((aligned(__alignof__( ::java::util::AbstractList)))) elements; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_SimpleList__ diff --git a/libjava/gnu/java/security/util/Util.h b/libjava/gnu/java/security/util/Util.h new file mode 100644 index 000000000..5e7764e13 --- /dev/null +++ b/libjava/gnu/java/security/util/Util.h @@ -0,0 +1,72 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_util_Util__ +#define __gnu_java_security_util_Util__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace util + { + class Util; + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::util::Util : public ::java::lang::Object +{ + + Util(); +public: + static ::java::lang::String * toString(JArray< jbyte > *); + static ::java::lang::String * toString(JArray< jbyte > *, jint, jint); + static ::java::lang::String * toReversedString(JArray< jbyte > *); + static ::java::lang::String * toReversedString(JArray< jbyte > *, jint, jint); + static JArray< jbyte > * toBytesFromString(::java::lang::String *); + static JArray< jbyte > * toReversedBytesFromString(::java::lang::String *); + static jint fromDigit(jchar); + static ::java::lang::String * toString(jint); + static ::java::lang::String * toString(JArray< jint > *); + static ::java::lang::String * toString(jlong); + static ::java::lang::String * toUnicodeString(JArray< jbyte > *); + static ::java::lang::String * toUnicodeString(JArray< jbyte > *, jint, jint); + static ::java::lang::String * toUnicodeString(JArray< jint > *); + static JArray< jbyte > * toBytesFromUnicode(::java::lang::String *); + static ::java::lang::String * dumpString(JArray< jbyte > *, jint, jint, ::java::lang::String *); + static ::java::lang::String * dumpString(JArray< jbyte > *); + static ::java::lang::String * dumpString(JArray< jbyte > *, ::java::lang::String *); + static ::java::lang::String * dumpString(JArray< jbyte > *, jint, jint); + static ::java::lang::String * byteToString(jint); + static ::java::lang::String * toBase64(JArray< jbyte > *); + static JArray< jbyte > * fromBase64(::java::lang::String *); + static JArray< jbyte > * trim(::java::math::BigInteger *); + static ::java::lang::String * dump(::java::math::BigInteger *); +private: + static JArray< jchar > * HEX_DIGITS; + static ::java::lang::String * BASE64_CHARS; + static JArray< jchar > * BASE64_CHARSET; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_util_Util__ diff --git a/libjava/gnu/java/security/x509/GnuPKIExtension.h b/libjava/gnu/java/security/x509/GnuPKIExtension.h new file mode 100644 index 000000000..d91dc7b03 --- /dev/null +++ b/libjava/gnu/java/security/x509/GnuPKIExtension.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_GnuPKIExtension__ +#define __gnu_java_security_x509_GnuPKIExtension__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + class GnuPKIExtension; + namespace ext + { + class Extension; + } + } + } + } + } +} + +class gnu::java::security::x509::GnuPKIExtension : public ::java::lang::Object +{ + +public: + virtual ::gnu::java::security::x509::ext::Extension * getExtension(::gnu::java::security::OID *) = 0; + virtual ::java::util::Collection * getExtensions() = 0; + virtual jboolean hasUnsupportedCriticalExtension() = 0; + virtual ::java::util::Set * getCriticalExtensionOIDs() = 0; + virtual ::java::util::Set * getNonCriticalExtensionOIDs() = 0; + virtual JArray< jbyte > * getExtensionValue(::java::lang::String *) = 0; + static ::java::lang::Class class$; +} __attribute__ ((java_interface)); + +#endif // __gnu_java_security_x509_GnuPKIExtension__ diff --git a/libjava/gnu/java/security/x509/PolicyNodeImpl.h b/libjava/gnu/java/security/x509/PolicyNodeImpl.h new file mode 100644 index 000000000..1786e4b2a --- /dev/null +++ b/libjava/gnu/java/security/x509/PolicyNodeImpl.h @@ -0,0 +1,73 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_PolicyNodeImpl__ +#define __gnu_java_security_x509_PolicyNodeImpl__ + +#pragma interface + +#include <java/lang/Object.h> +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + class PolicyNodeImpl; + } + } + } + } + namespace java + { + namespace security + { + namespace cert + { + class PolicyNode; + class PolicyQualifierInfo; + } + } + } +} + +class gnu::java::security::x509::PolicyNodeImpl : public ::java::lang::Object +{ + +public: + PolicyNodeImpl(); + void addChild(::gnu::java::security::x509::PolicyNodeImpl *); + ::java::util::Iterator * getChildren(); + jint getDepth(); + void setDepth(jint); + void addAllExpectedPolicies(::java::util::Set *); + void addExpectedPolicy(::java::lang::String *); + ::java::util::Set * getExpectedPolicies(); + ::java::security::cert::PolicyNode * getParent(); + void addAllPolicyQualifiers(::java::util::Collection *); + void addPolicyQualifier(::java::security::cert::PolicyQualifierInfo *); + ::java::util::Set * getPolicyQualifiers(); + ::java::lang::String * getValidPolicy(); + void setValidPolicy(::java::lang::String *); + jboolean isCritical(); + void setCritical(jboolean); + void setReadOnly(); + ::java::lang::String * toString(); +private: + ::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) policy; + ::java::util::Set * expectedPolicies; + ::java::util::Set * qualifiers; + ::java::util::Set * children; + ::gnu::java::security::x509::PolicyNodeImpl * parent; + jint depth; + jboolean critical; + jboolean readOnly; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_PolicyNodeImpl__ diff --git a/libjava/gnu/java/security/x509/Util.h b/libjava/gnu/java/security/x509/Util.h new file mode 100644 index 000000000..4a6d4c2f2 --- /dev/null +++ b/libjava/gnu/java/security/x509/Util.h @@ -0,0 +1,46 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_Util__ +#define __gnu_java_security_x509_Util__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + class Util; + } + } + } + } +} + +class gnu::java::security::x509::Util : public ::java::lang::Object +{ + +public: + Util(); + static ::java::lang::String * toHexString(JArray< jbyte > *, jint, jint); + static ::java::lang::String * toHexString(JArray< jbyte > *); + static ::java::lang::String * toHexString(JArray< jbyte > *, jint, jint, jchar); + static ::java::lang::String * toHexString(JArray< jbyte > *, jchar); + static ::java::lang::String * hexDump(JArray< jbyte > *, jint, jint, ::java::lang::String *); + static ::java::lang::String * hexDump(JArray< jbyte > *, ::java::lang::String *); + static ::java::lang::String * formatInt(jint, jint, jint); + static JArray< jbyte > * toByteArray(::java::lang::String *); + static ::java::lang::String * HEX; + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_Util__ diff --git a/libjava/gnu/java/security/x509/X500DistinguishedName.h b/libjava/gnu/java/security/x509/X500DistinguishedName.h new file mode 100644 index 000000000..c2e949662 --- /dev/null +++ b/libjava/gnu/java/security/x509/X500DistinguishedName.h @@ -0,0 +1,90 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_X500DistinguishedName__ +#define __gnu_java_security_x509_X500DistinguishedName__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace der + { + class DERReader; + } + namespace x509 + { + class X500DistinguishedName; + } + } + } + } +} + +class gnu::java::security::x509::X500DistinguishedName : public ::java::lang::Object +{ + +public: + X500DistinguishedName(); + X500DistinguishedName(::java::lang::String *); + X500DistinguishedName(JArray< jbyte > *); + X500DistinguishedName(::java::io::InputStream *); + virtual ::java::lang::String * getName(); + virtual void newRelativeDistinguishedName(); + virtual jint size(); + virtual jint countComponents(); + virtual jboolean containsComponent(::gnu::java::security::OID *, ::java::lang::String *); + virtual ::java::lang::String * getComponent(::gnu::java::security::OID *); + virtual ::java::lang::String * getComponent(::gnu::java::security::OID *, jint); + virtual void putComponent(::gnu::java::security::OID *, ::java::lang::String *); + virtual void putComponent(::java::lang::String *, ::java::lang::String *); + virtual void setUnmodifiable(); + virtual jint hashCode(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); + virtual JArray< jbyte > * getDer(); +private: + void parseString(::java::lang::String *); + ::java::lang::String * readAttributeType(::java::io::Reader *); + ::java::lang::String * readAttributeValue(::java::io::Reader *); + void parseDer(::gnu::java::security::der::DERReader *); + static ::java::lang::String * compressWS(::java::lang::String *); +public: + static ::gnu::java::security::OID * CN; + static ::gnu::java::security::OID * C; + static ::gnu::java::security::OID * L; + static ::gnu::java::security::OID * ST; + static ::gnu::java::security::OID * STREET; + static ::gnu::java::security::OID * O; + static ::gnu::java::security::OID * OU; + static ::gnu::java::security::OID * T; + static ::gnu::java::security::OID * DNQ; + static ::gnu::java::security::OID * NAME; + static ::gnu::java::security::OID * GIVENNAME; + static ::gnu::java::security::OID * INITIALS; + static ::gnu::java::security::OID * GENERATION; + static ::gnu::java::security::OID * EMAIL; + static ::gnu::java::security::OID * DC; + static ::gnu::java::security::OID * UID; +private: + ::java::util::List * __attribute__((aligned(__alignof__( ::java::lang::Object)))) components; + ::java::util::Map * currentRdn; + jboolean fixed; + ::java::lang::String * stringRep; + JArray< jbyte > * encoded; + jint sep; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_X500DistinguishedName__ diff --git a/libjava/gnu/java/security/x509/X509CRL.h b/libjava/gnu/java/security/x509/X509CRL.h new file mode 100644 index 000000000..76d5e1e31 --- /dev/null +++ b/libjava/gnu/java/security/x509/X509CRL.h @@ -0,0 +1,124 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_X509CRL__ +#define __gnu_java_security_x509_X509CRL__ + +#pragma interface + +#include <java/security/cert/X509CRL.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + class X500DistinguishedName; + class X509CRL; + namespace ext + { + class Extension; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class Principal; + class PublicKey; + class Signature; + namespace cert + { + class Certificate; + class X509CRLEntry; + } + } + } + namespace javax + { + namespace security + { + namespace auth + { + namespace x500 + { + class X500Principal; + } + } + } + } +} + +class gnu::java::security::x509::X509CRL : public ::java::security::cert::X509CRL +{ + +public: + X509CRL(::java::io::InputStream *); + virtual jboolean equals(::java::lang::Object *); + virtual jint hashCode(); + virtual JArray< jbyte > * getEncoded(); + virtual void verify(::java::security::PublicKey *); + virtual void verify(::java::security::PublicKey *, ::java::lang::String *); + virtual jint getVersion(); + virtual ::java::security::Principal * getIssuerDN(); + virtual ::javax::security::auth::x500::X500Principal * getIssuerX500Principal(); + virtual ::java::util::Date * getThisUpdate(); + virtual ::java::util::Date * getNextUpdate(); + virtual ::java::security::cert::X509CRLEntry * getRevokedCertificate(::java::math::BigInteger *); + virtual ::java::util::Set * getRevokedCertificates(); + virtual JArray< jbyte > * getTBSCertList(); + virtual JArray< jbyte > * getSignature(); + virtual ::java::lang::String * getSigAlgName(); + virtual ::java::lang::String * getSigAlgOID(); + virtual JArray< jbyte > * getSigAlgParams(); + virtual jboolean hasUnsupportedCriticalExtension(); + virtual ::java::util::Set * getCriticalExtensionOIDs(); + virtual ::java::util::Set * getNonCriticalExtensionOIDs(); + virtual JArray< jbyte > * getExtensionValue(::java::lang::String *); + virtual ::gnu::java::security::x509::ext::Extension * getExtension(::gnu::java::security::OID *); + virtual ::java::util::Collection * getExtensions(); + virtual ::java::lang::String * toString(); + virtual jboolean isRevoked(::java::security::cert::Certificate *); +private: + void doVerify(::java::security::Signature *, ::java::security::PublicKey *); + void parse(::java::io::InputStream *); + static ::java::util::logging::Logger * log; + static ::gnu::java::security::OID * ID_DSA; + static ::gnu::java::security::OID * ID_DSA_WITH_SHA1; + static ::gnu::java::security::OID * ID_RSA; + static ::gnu::java::security::OID * ID_RSA_WITH_MD2; + static ::gnu::java::security::OID * ID_RSA_WITH_MD5; + static ::gnu::java::security::OID * ID_RSA_WITH_SHA1; + JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::security::cert::X509CRL)))) encoded; + JArray< jbyte > * tbsCRLBytes; + jint version; + ::gnu::java::security::OID * algId; + JArray< jbyte > * algParams; + ::java::util::Date * thisUpdate; + ::java::util::Date * nextUpdate; + ::gnu::java::security::x509::X500DistinguishedName * issuerDN; + ::java::util::HashMap * revokedCerts; + ::java::util::HashMap * extensions; + ::gnu::java::security::OID * sigAlg; + JArray< jbyte > * sigAlgParams; + JArray< jbyte > * rawSig; + JArray< jbyte > * signature; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_X509CRL__ diff --git a/libjava/gnu/java/security/x509/X509CRLEntry.h b/libjava/gnu/java/security/x509/X509CRLEntry.h new file mode 100644 index 000000000..7b272f75e --- /dev/null +++ b/libjava/gnu/java/security/x509/X509CRLEntry.h @@ -0,0 +1,75 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_X509CRLEntry__ +#define __gnu_java_security_x509_X509CRLEntry__ + +#pragma interface + +#include <java/security/cert/X509CRLEntry.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace der + { + class DERReader; + } + namespace x509 + { + class X509CRLEntry; + namespace ext + { + class Extension; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::x509::X509CRLEntry : public ::java::security::cert::X509CRLEntry +{ + +public: // actually package-private + X509CRLEntry(jint, ::gnu::java::security::der::DERReader *); +public: + virtual jboolean equals(::java::lang::Object *); + virtual jint hashCode(); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::math::BigInteger * getSerialNumber(); + virtual ::java::util::Date * getRevocationDate(); + virtual jboolean hasExtensions(); + virtual ::java::lang::String * toString(); + virtual jboolean hasUnsupportedCriticalExtension(); + virtual ::java::util::Set * getCriticalExtensionOIDs(); + virtual ::java::util::Set * getNonCriticalExtensionOIDs(); + virtual JArray< jbyte > * getExtensionValue(::java::lang::String *); + virtual ::gnu::java::security::x509::ext::Extension * getExtension(::gnu::java::security::OID *); + virtual ::java::util::Collection * getExtensions(); +private: + void parse(jint, ::gnu::java::security::der::DERReader *); + static ::java::util::logging::Logger * log; + JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::security::cert::X509CRLEntry)))) encoded; + ::java::math::BigInteger * serialNo; + ::java::util::Date * revocationDate; + ::java::util::HashMap * extensions; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_X509CRLEntry__ diff --git a/libjava/gnu/java/security/x509/X509CRLSelectorImpl.h b/libjava/gnu/java/security/x509/X509CRLSelectorImpl.h new file mode 100644 index 000000000..2fc953759 --- /dev/null +++ b/libjava/gnu/java/security/x509/X509CRLSelectorImpl.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_X509CRLSelectorImpl__ +#define __gnu_java_security_x509_X509CRLSelectorImpl__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + class X509CRLSelectorImpl; + } + } + } + } + namespace java + { + namespace security + { + class Principal; + namespace cert + { + class CRL; + } + } + } +} + +class gnu::java::security::x509::X509CRLSelectorImpl : public ::java::lang::Object +{ + +public: + X509CRLSelectorImpl(); + virtual void addIssuerName(JArray< jbyte > *); + virtual void addIssuerName(::java::lang::String *); + virtual void addIssuerName(::java::security::Principal *); + virtual ::java::util::Collection * getIssuerNames(); + virtual ::java::lang::Object * clone(); + virtual jboolean match(::java::security::cert::CRL *); +private: + ::java::util::Set * __attribute__((aligned(__alignof__( ::java::lang::Object)))) issuerNames; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_X509CRLSelectorImpl__ diff --git a/libjava/gnu/java/security/x509/X509CertPath.h b/libjava/gnu/java/security/x509/X509CertPath.h new file mode 100644 index 000000000..5aaadc6dc --- /dev/null +++ b/libjava/gnu/java/security/x509/X509CertPath.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_X509CertPath__ +#define __gnu_java_security_x509_X509CertPath__ + +#pragma interface + +#include <java/security/cert/CertPath.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + class X509CertPath; + } + } + } + } +} + +class gnu::java::security::x509::X509CertPath : public ::java::security::cert::CertPath +{ + +public: + X509CertPath(::java::util::List *); + X509CertPath(::java::io::InputStream *); + X509CertPath(::java::io::InputStream *, ::java::lang::String *); + virtual ::java::util::List * getCertificates(); + virtual JArray< jbyte > * getEncoded(); + virtual JArray< jbyte > * getEncoded(::java::lang::String *); + virtual ::java::util::Iterator * getEncodings(); +private: + void parse(::java::io::InputStream *, ::java::lang::String *); + JArray< jbyte > * encodePki(); + JArray< jbyte > * encodePKCS(); +public: + static ::java::util::List * ENCODINGS; +private: + static ::gnu::java::security::OID * PKCS7_SIGNED_DATA; + static ::gnu::java::security::OID * PKCS7_DATA; + ::java::util::List * __attribute__((aligned(__alignof__( ::java::security::cert::CertPath)))) path; + JArray< jbyte > * pkcs_encoded; + JArray< jbyte > * pki_encoded; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_X509CertPath__ diff --git a/libjava/gnu/java/security/x509/X509CertSelectorImpl.h b/libjava/gnu/java/security/x509/X509CertSelectorImpl.h new file mode 100644 index 000000000..12a12af5a --- /dev/null +++ b/libjava/gnu/java/security/x509/X509CertSelectorImpl.h @@ -0,0 +1,62 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_X509CertSelectorImpl__ +#define __gnu_java_security_x509_X509CertSelectorImpl__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + class X509CertSelectorImpl; + } + } + } + } + namespace java + { + namespace security + { + class Principal; + namespace cert + { + class Certificate; + } + } + } +} + +class gnu::java::security::x509::X509CertSelectorImpl : public ::java::lang::Object +{ + +public: + X509CertSelectorImpl(); + virtual void addIssuerName(JArray< jbyte > *); + virtual void addIssuerName(::java::lang::String *); + virtual void addIssuerName(::java::security::Principal *); + virtual ::java::util::Collection * getIssuerNames(); + virtual void addSubjectName(JArray< jbyte > *); + virtual void addSubjectName(::java::lang::String *); + virtual void addSubjectName(::java::security::Principal *); + virtual ::java::util::Collection * getSubjectNames(); + virtual ::java::lang::Object * clone(); + virtual jboolean match(::java::security::cert::Certificate *); +private: + ::java::util::Set * __attribute__((aligned(__alignof__( ::java::lang::Object)))) issuerNames; + ::java::util::Set * subjectNames; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_X509CertSelectorImpl__ diff --git a/libjava/gnu/java/security/x509/X509Certificate.h b/libjava/gnu/java/security/x509/X509Certificate.h new file mode 100644 index 000000000..68e944360 --- /dev/null +++ b/libjava/gnu/java/security/x509/X509Certificate.h @@ -0,0 +1,141 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_X509Certificate__ +#define __gnu_java_security_x509_X509Certificate__ + +#pragma interface + +#include <java/security/cert/X509Certificate.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace der + { + class BitString; + } + namespace x509 + { + class X500DistinguishedName; + class X509Certificate; + namespace ext + { + class Extension; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + namespace security + { + class Principal; + class PublicKey; + class Signature; + } + } + namespace javax + { + namespace security + { + namespace auth + { + namespace x500 + { + class X500Principal; + } + } + } + } +} + +class gnu::java::security::x509::X509Certificate : public ::java::security::cert::X509Certificate +{ + +public: + X509Certificate(::java::io::InputStream *); +public: // actually protected + X509Certificate(); +public: + virtual void checkValidity(); + virtual void checkValidity(::java::util::Date *); + virtual jint getVersion(); + virtual ::java::math::BigInteger * getSerialNumber(); + virtual ::java::security::Principal * getIssuerDN(); + virtual ::javax::security::auth::x500::X500Principal * getIssuerX500Principal(); + virtual ::java::security::Principal * getSubjectDN(); + virtual ::javax::security::auth::x500::X500Principal * getSubjectX500Principal(); + virtual ::java::util::Date * getNotBefore(); + virtual ::java::util::Date * getNotAfter(); + virtual JArray< jbyte > * getTBSCertificate(); + virtual JArray< jbyte > * getSignature(); + virtual ::java::lang::String * getSigAlgName(); + virtual ::java::lang::String * getSigAlgOID(); + virtual JArray< jbyte > * getSigAlgParams(); + virtual JArray< jboolean > * getIssuerUniqueID(); + virtual JArray< jboolean > * getSubjectUniqueID(); + virtual JArray< jboolean > * getKeyUsage(); + virtual ::java::util::List * getExtendedKeyUsage(); + virtual jint getBasicConstraints(); + virtual ::java::util::Collection * getSubjectAlternativeNames(); + virtual ::java::util::Collection * getIssuerAlternativeNames(); + virtual jboolean hasUnsupportedCriticalExtension(); + virtual ::java::util::Set * getCriticalExtensionOIDs(); + virtual ::java::util::Set * getNonCriticalExtensionOIDs(); + virtual JArray< jbyte > * getExtensionValue(::java::lang::String *); + virtual ::gnu::java::security::x509::ext::Extension * getExtension(::gnu::java::security::OID *); + virtual ::java::util::Collection * getExtensions(); + virtual JArray< jbyte > * getEncoded(); + virtual void verify(::java::security::PublicKey *); + virtual void verify(::java::security::PublicKey *, ::java::lang::String *); + virtual ::java::lang::String * toString(); + virtual ::java::security::PublicKey * getPublicKey(); + virtual jboolean equals(::java::lang::Object *); +private: + void doVerify(::java::security::Signature *, ::java::security::PublicKey *); + void parse(::java::io::InputStream *); + static const jlong serialVersionUID = -2491127588187038216LL; + static ::java::util::logging::Logger * logger; +public: // actually protected + static ::gnu::java::security::OID * ID_DSA; + static ::gnu::java::security::OID * ID_DSA_WITH_SHA1; + static ::gnu::java::security::OID * ID_RSA; + static ::gnu::java::security::OID * ID_RSA_WITH_MD2; + static ::gnu::java::security::OID * ID_RSA_WITH_MD5; + static ::gnu::java::security::OID * ID_RSA_WITH_SHA1; + static ::gnu::java::security::OID * ID_ECDSA_WITH_SHA1; + JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::security::cert::X509Certificate)))) encoded; + JArray< jbyte > * tbsCertBytes; + jint version; + ::java::math::BigInteger * serialNo; + ::gnu::java::security::OID * algId; + JArray< jbyte > * algVal; + ::gnu::java::security::x509::X500DistinguishedName * issuer; + ::java::util::Date * notBefore; + ::java::util::Date * notAfter; + ::gnu::java::security::x509::X500DistinguishedName * subject; + ::java::security::PublicKey * subjectKey; + ::gnu::java::security::der::BitString * issuerUniqueId; + ::gnu::java::security::der::BitString * subjectUniqueId; + ::java::util::Map * extensions; + ::gnu::java::security::OID * sigAlgId; + JArray< jbyte > * sigAlgVal; + JArray< jbyte > * signature; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_X509Certificate__ diff --git a/libjava/gnu/java/security/x509/ext/AuthorityKeyIdentifier.h b/libjava/gnu/java/security/x509/ext/AuthorityKeyIdentifier.h new file mode 100644 index 000000000..71b6f6021 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/AuthorityKeyIdentifier.h @@ -0,0 +1,59 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_AuthorityKeyIdentifier__ +#define __gnu_java_security_x509_ext_AuthorityKeyIdentifier__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class AuthorityKeyIdentifier; + class GeneralNames; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::x509::ext::AuthorityKeyIdentifier : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + AuthorityKeyIdentifier(JArray< jbyte > *); + virtual JArray< jbyte > * getKeyIdentifier(); + virtual ::gnu::java::security::x509::ext::GeneralNames * getAuthorityCertIssuer(); + virtual ::java::math::BigInteger * getAuthorityCertSerialNumber(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) keyIdentifier; + ::gnu::java::security::x509::ext::GeneralNames * authorityCertIssuer; + ::java::math::BigInteger * authorityCertSerialNumber; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_AuthorityKeyIdentifier__ diff --git a/libjava/gnu/java/security/x509/ext/BasicConstraints.h b/libjava/gnu/java/security/x509/ext/BasicConstraints.h new file mode 100644 index 000000000..96fffb512 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/BasicConstraints.h @@ -0,0 +1,51 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_BasicConstraints__ +#define __gnu_java_security_x509_ext_BasicConstraints__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class BasicConstraints; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::BasicConstraints : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + BasicConstraints(JArray< jbyte > *); + BasicConstraints(jboolean, jint); + virtual jboolean isCA(); + virtual jint getPathLengthConstraint(); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + jboolean __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) ca; + jint pathLenConstraint; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_BasicConstraints__ diff --git a/libjava/gnu/java/security/x509/ext/CRLNumber.h b/libjava/gnu/java/security/x509/ext/CRLNumber.h new file mode 100644 index 000000000..ef56baae8 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/CRLNumber.h @@ -0,0 +1,56 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_CRLNumber__ +#define __gnu_java_security_x509_ext_CRLNumber__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class CRLNumber; + } + } + } + } + } + namespace java + { + namespace math + { + class BigInteger; + } + } +} + +class gnu::java::security::x509::ext::CRLNumber : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + CRLNumber(JArray< jbyte > *); + CRLNumber(::java::math::BigInteger *); + virtual ::java::math::BigInteger * getNumber(); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::java::math::BigInteger * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) number; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_CRLNumber__ diff --git a/libjava/gnu/java/security/x509/ext/CertificatePolicies.h b/libjava/gnu/java/security/x509/ext/CertificatePolicies.h new file mode 100644 index 000000000..5de618446 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/CertificatePolicies.h @@ -0,0 +1,52 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_CertificatePolicies__ +#define __gnu_java_security_x509_ext_CertificatePolicies__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class CertificatePolicies; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::CertificatePolicies : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + CertificatePolicies(JArray< jbyte > *); + CertificatePolicies(::java::util::List *, ::java::util::Map *); + virtual ::java::util::List * getPolicies(); + virtual ::java::util::List * getPolicyStrings(); + virtual ::java::util::List * getPolicyQualifierInfos(::gnu::java::security::OID *); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::java::util::List * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) policies; + ::java::util::Map * policyQualifierInfos; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_CertificatePolicies__ diff --git a/libjava/gnu/java/security/x509/ext/ExtendedKeyUsage.h b/libjava/gnu/java/security/x509/ext/ExtendedKeyUsage.h new file mode 100644 index 000000000..61f5f1d05 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/ExtendedKeyUsage.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_ExtendedKeyUsage__ +#define __gnu_java_security_x509_ext_ExtendedKeyUsage__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class ExtendedKeyUsage; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::ExtendedKeyUsage : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + ExtendedKeyUsage(JArray< jbyte > *); + virtual ::java::util::List * getPurposeIds(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::java::util::List * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) purposeIds; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_ExtendedKeyUsage__ diff --git a/libjava/gnu/java/security/x509/ext/Extension$Value.h b/libjava/gnu/java/security/x509/ext/Extension$Value.h new file mode 100644 index 000000000..04f069ea5 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/Extension$Value.h @@ -0,0 +1,50 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_Extension$Value__ +#define __gnu_java_security_x509_ext_Extension$Value__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + namespace ext + { + class Extension$Value; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::Extension$Value : public ::java::lang::Object +{ + +public: + Extension$Value(JArray< jbyte > *); +public: // actually protected + Extension$Value(); +public: + virtual JArray< jbyte > * getEncoded(); + virtual jint hashCode(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +public: // actually protected + JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) encoded; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_Extension$Value__ diff --git a/libjava/gnu/java/security/x509/ext/Extension.h b/libjava/gnu/java/security/x509/ext/Extension.h new file mode 100644 index 000000000..0e660f918 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/Extension.h @@ -0,0 +1,64 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_Extension__ +#define __gnu_java_security_x509_ext_Extension__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace der + { + class DERValue; + } + namespace x509 + { + namespace ext + { + class Extension; + class Extension$Value; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::Extension : public ::java::lang::Object +{ + +public: + Extension(JArray< jbyte > *); + Extension(::gnu::java::security::OID *, ::gnu::java::security::x509::ext::Extension$Value *, jboolean); + virtual ::gnu::java::security::OID * getOid(); + virtual jboolean isCritical(); + virtual jboolean isSupported(); + virtual ::gnu::java::security::x509::ext::Extension$Value * getValue(); + virtual JArray< jbyte > * getEncoded(); + virtual ::java::lang::String * toString(); + virtual ::gnu::java::security::der::DERValue * getDerValue(); +private: + void encode(); + static ::java::util::logging::Logger * log; +public: // actually protected + ::gnu::java::security::OID * __attribute__((aligned(__alignof__( ::java::lang::Object)))) oid; + jboolean critical; + jboolean isSupported__; + ::gnu::java::security::x509::ext::Extension$Value * value; + JArray< jbyte > * encoded; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_Extension__ diff --git a/libjava/gnu/java/security/x509/ext/GeneralName$Kind.h b/libjava/gnu/java/security/x509/ext/GeneralName$Kind.h new file mode 100644 index 000000000..db98200eb --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/GeneralName$Kind.h @@ -0,0 +1,57 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_GeneralName$Kind__ +#define __gnu_java_security_x509_ext_GeneralName$Kind__ + +#pragma interface + +#include <java/lang/Enum.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + namespace ext + { + class GeneralName$Kind; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::GeneralName$Kind : public ::java::lang::Enum +{ + + GeneralName$Kind(::java::lang::String *, jint, jint); +public: + static ::gnu::java::security::x509::ext::GeneralName$Kind * forTag(jint); + jint tag(); + static JArray< ::gnu::java::security::x509::ext::GeneralName$Kind * > * values(); + static ::gnu::java::security::x509::ext::GeneralName$Kind * valueOf(::java::lang::String *); + static ::gnu::java::security::x509::ext::GeneralName$Kind * otherName; + static ::gnu::java::security::x509::ext::GeneralName$Kind * rfc822Name; + static ::gnu::java::security::x509::ext::GeneralName$Kind * dNSName; + static ::gnu::java::security::x509::ext::GeneralName$Kind * x400Address; + static ::gnu::java::security::x509::ext::GeneralName$Kind * directoryName; + static ::gnu::java::security::x509::ext::GeneralName$Kind * ediPartyName; + static ::gnu::java::security::x509::ext::GeneralName$Kind * uniformResourceIdentifier; + static ::gnu::java::security::x509::ext::GeneralName$Kind * iPAddress; + static ::gnu::java::security::x509::ext::GeneralName$Kind * registeredId; +private: + jint __attribute__((aligned(__alignof__( ::java::lang::Enum)))) tag__; + static JArray< ::gnu::java::security::x509::ext::GeneralName$Kind * > * ENUM$VALUES; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_GeneralName$Kind__ diff --git a/libjava/gnu/java/security/x509/ext/GeneralName.h b/libjava/gnu/java/security/x509/ext/GeneralName.h new file mode 100644 index 000000000..018bd3637 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/GeneralName.h @@ -0,0 +1,55 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_GeneralName__ +#define __gnu_java_security_x509_ext_GeneralName__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + namespace ext + { + class GeneralName; + class GeneralName$Kind; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::GeneralName : public ::java::lang::Object +{ + +public: + GeneralName(JArray< jbyte > *); + GeneralName(::gnu::java::security::x509::ext::GeneralName$Kind *, JArray< jbyte > *); + virtual ::gnu::java::security::x509::ext::GeneralName$Kind * kind(); + virtual JArray< jbyte > * name(); + virtual JArray< jbyte > * encoded(); + virtual jboolean equals(::java::lang::Object *); + virtual ::java::lang::String * toString(); +public: // actually package-private + static JArray< jint > * $SWITCH_TABLE$gnu$java$security$x509$ext$GeneralName$Kind(); +private: + ::gnu::java::security::x509::ext::GeneralName$Kind * __attribute__((aligned(__alignof__( ::java::lang::Object)))) kind__; + JArray< jbyte > * name__; + JArray< jbyte > * encoded__; + static JArray< jint > * $SWITCH_TABLE$gnu$java$security$x509$ext$GeneralName$Kind__; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_GeneralName__ diff --git a/libjava/gnu/java/security/x509/ext/GeneralNames.h b/libjava/gnu/java/security/x509/ext/GeneralNames.h new file mode 100644 index 000000000..e55113b14 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/GeneralNames.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_GeneralNames__ +#define __gnu_java_security_x509_ext_GeneralNames__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + namespace ext + { + class GeneralNames; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::GeneralNames : public ::java::lang::Object +{ + +public: + GeneralNames(JArray< jbyte > *); + virtual ::java::util::List * getNames(); + virtual ::java::lang::String * toString(); +private: + ::java::util::List * __attribute__((aligned(__alignof__( ::java::lang::Object)))) names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_GeneralNames__ diff --git a/libjava/gnu/java/security/x509/ext/GeneralSubtree.h b/libjava/gnu/java/security/x509/ext/GeneralSubtree.h new file mode 100644 index 000000000..dae50e212 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/GeneralSubtree.h @@ -0,0 +1,50 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_GeneralSubtree__ +#define __gnu_java_security_x509_ext_GeneralSubtree__ + +#pragma interface + +#include <java/lang/Object.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + namespace x509 + { + namespace ext + { + class GeneralName; + class GeneralSubtree; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::GeneralSubtree : public ::java::lang::Object +{ + +public: + GeneralSubtree(JArray< jbyte > *); + virtual ::gnu::java::security::x509::ext::GeneralName * base(); + virtual jint minimum(); + virtual jint maximum(); + virtual ::java::lang::String * toString(); +private: + ::gnu::java::security::x509::ext::GeneralName * __attribute__((aligned(__alignof__( ::java::lang::Object)))) base__; + jint minimum__; + jint maximum__; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_GeneralSubtree__ diff --git a/libjava/gnu/java/security/x509/ext/IssuerAlternativeNames.h b/libjava/gnu/java/security/x509/ext/IssuerAlternativeNames.h new file mode 100644 index 000000000..50b3f35a6 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/IssuerAlternativeNames.h @@ -0,0 +1,48 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_IssuerAlternativeNames__ +#define __gnu_java_security_x509_ext_IssuerAlternativeNames__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class GeneralNames; + class IssuerAlternativeNames; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::IssuerAlternativeNames : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + IssuerAlternativeNames(JArray< jbyte > *); + virtual ::java::util::List * getNames(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::gnu::java::security::x509::ext::GeneralNames * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_IssuerAlternativeNames__ diff --git a/libjava/gnu/java/security/x509/ext/KeyUsage.h b/libjava/gnu/java/security/x509/ext/KeyUsage.h new file mode 100644 index 000000000..4293755ad --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/KeyUsage.h @@ -0,0 +1,60 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_KeyUsage__ +#define __gnu_java_security_x509_ext_KeyUsage__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace der + { + class BitString; + } + namespace x509 + { + namespace ext + { + class KeyUsage; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::KeyUsage : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + KeyUsage(JArray< jbyte > *); + virtual ::gnu::java::security::der::BitString * getKeyUsage(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; + static const jint DIGITAL_SIGNATURE = 0; + static const jint NON_REPUDIATION = 1; + static const jint KEY_ENCIPHERMENT = 2; + static const jint DATA_ENCIPHERMENT = 3; + static const jint KEY_AGREEMENT = 4; + static const jint KEY_CERT_SIGN = 5; + static const jint CRL_SIGN = 6; + static const jint ENCIPHER_ONLY = 7; + static const jint DECIPHER_ONLY = 8; +private: + ::gnu::java::security::der::BitString * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) keyUsage; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_KeyUsage__ diff --git a/libjava/gnu/java/security/x509/ext/NameConstraints.h b/libjava/gnu/java/security/x509/ext/NameConstraints.h new file mode 100644 index 000000000..f7bc77880 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/NameConstraints.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_NameConstraints__ +#define __gnu_java_security_x509_ext_NameConstraints__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class NameConstraints; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::NameConstraints : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + NameConstraints(JArray< jbyte > *); + virtual ::java::util::List * permittedSubtrees(); + virtual ::java::util::List * excludedSubtrees(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::java::util::List * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) permittedSubtrees__; + ::java::util::List * excludedSubtrees__; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_NameConstraints__ diff --git a/libjava/gnu/java/security/x509/ext/PolicyConstraint.h b/libjava/gnu/java/security/x509/ext/PolicyConstraint.h new file mode 100644 index 000000000..1846d461f --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/PolicyConstraint.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_PolicyConstraint__ +#define __gnu_java_security_x509_ext_PolicyConstraint__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class PolicyConstraint; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::PolicyConstraint : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + PolicyConstraint(JArray< jbyte > *); + virtual jint getRequireExplicitPolicy(); + virtual jint getInhibitPolicyMapping(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + jint __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) requireExplicitPolicy; + jint inhibitPolicyMapping; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_PolicyConstraint__ diff --git a/libjava/gnu/java/security/x509/ext/PolicyMappings.h b/libjava/gnu/java/security/x509/ext/PolicyMappings.h new file mode 100644 index 000000000..2741db3fa --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/PolicyMappings.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_PolicyMappings__ +#define __gnu_java_security_x509_ext_PolicyMappings__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class PolicyMappings; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::PolicyMappings : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + PolicyMappings(JArray< jbyte > *); + virtual ::gnu::java::security::OID * getSubjectDomainPolicy(::gnu::java::security::OID *); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::java::util::Map * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) mappings; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_PolicyMappings__ diff --git a/libjava/gnu/java/security/x509/ext/PrivateKeyUsagePeriod.h b/libjava/gnu/java/security/x509/ext/PrivateKeyUsagePeriod.h new file mode 100644 index 000000000..0d14162b7 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/PrivateKeyUsagePeriod.h @@ -0,0 +1,49 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_PrivateKeyUsagePeriod__ +#define __gnu_java_security_x509_ext_PrivateKeyUsagePeriod__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class PrivateKeyUsagePeriod; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::PrivateKeyUsagePeriod : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + PrivateKeyUsagePeriod(JArray< jbyte > *); + virtual ::java::util::Date * getNotBefore(); + virtual ::java::util::Date * getNotAfter(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::java::util::Date * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) notBefore; + ::java::util::Date * notAfter; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_PrivateKeyUsagePeriod__ diff --git a/libjava/gnu/java/security/x509/ext/ReasonCode.h b/libjava/gnu/java/security/x509/ext/ReasonCode.h new file mode 100644 index 000000000..03a3c454a --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/ReasonCode.h @@ -0,0 +1,45 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_ReasonCode__ +#define __gnu_java_security_x509_ext_ReasonCode__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class ReasonCode; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::ReasonCode : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + ReasonCode(JArray< jbyte > *); + virtual jint getReasonCode(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; + jint __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) reason; + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_ReasonCode__ diff --git a/libjava/gnu/java/security/x509/ext/SubjectAlternativeNames.h b/libjava/gnu/java/security/x509/ext/SubjectAlternativeNames.h new file mode 100644 index 000000000..80e9ac055 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/SubjectAlternativeNames.h @@ -0,0 +1,48 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_SubjectAlternativeNames__ +#define __gnu_java_security_x509_ext_SubjectAlternativeNames__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class GeneralNames; + class SubjectAlternativeNames; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::SubjectAlternativeNames : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + SubjectAlternativeNames(JArray< jbyte > *); + virtual ::java::util::List * getNames(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + ::gnu::java::security::x509::ext::GeneralNames * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) names; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_SubjectAlternativeNames__ diff --git a/libjava/gnu/java/security/x509/ext/SubjectKeyIdentifier.h b/libjava/gnu/java/security/x509/ext/SubjectKeyIdentifier.h new file mode 100644 index 000000000..46cb0f4d6 --- /dev/null +++ b/libjava/gnu/java/security/x509/ext/SubjectKeyIdentifier.h @@ -0,0 +1,47 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_java_security_x509_ext_SubjectKeyIdentifier__ +#define __gnu_java_security_x509_ext_SubjectKeyIdentifier__ + +#pragma interface + +#include <gnu/java/security/x509/ext/Extension$Value.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace java + { + namespace security + { + class OID; + namespace x509 + { + namespace ext + { + class SubjectKeyIdentifier; + } + } + } + } + } +} + +class gnu::java::security::x509::ext::SubjectKeyIdentifier : public ::gnu::java::security::x509::ext::Extension$Value +{ + +public: + SubjectKeyIdentifier(JArray< jbyte > *); + virtual JArray< jbyte > * getKeyIdentifier(); + virtual ::java::lang::String * toString(); + static ::gnu::java::security::OID * ID; +private: + JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::java::security::x509::ext::Extension$Value)))) keyIdentifier; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_java_security_x509_ext_SubjectKeyIdentifier__ |