Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AccessControlContext__
|
||||
#define __java_security_AccessControlContext__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AccessControlContext;
|
||||
class DomainCombiner;
|
||||
class Permission;
|
||||
class ProtectionDomain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AccessControlContext : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
AccessControlContext(JArray< ::java::security::ProtectionDomain * > *);
|
||||
AccessControlContext(::java::security::AccessControlContext *, ::java::security::DomainCombiner *);
|
||||
public: // actually package-private
|
||||
AccessControlContext(JArray< ::java::security::ProtectionDomain * > *, ::java::security::AccessControlContext *, ::java::security::DomainCombiner *);
|
||||
public:
|
||||
::java::security::DomainCombiner * getDomainCombiner();
|
||||
void checkPermission(::java::security::Permission *);
|
||||
jboolean equals(::java::lang::Object *);
|
||||
jint hashCode();
|
||||
public: // actually package-private
|
||||
JArray< ::java::security::ProtectionDomain * > * getProtectionDomains();
|
||||
private:
|
||||
JArray< ::java::security::ProtectionDomain * > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) protectionDomains;
|
||||
::java::security::DomainCombiner * combiner;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AccessControlContext__
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AccessControlException__
|
||||
#define __java_security_AccessControlException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/SecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AccessControlException;
|
||||
class Permission;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AccessControlException : public ::java::lang::SecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
AccessControlException(::java::lang::String *);
|
||||
AccessControlException(::java::lang::String *, ::java::security::Permission *);
|
||||
virtual ::java::security::Permission * getPermission();
|
||||
private:
|
||||
static const jlong serialVersionUID = 5138225684096988535LL;
|
||||
::java::security::Permission * __attribute__((aligned(__alignof__( ::java::lang::SecurityException)))) perm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AccessControlException__
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AccessController__
|
||||
#define __java_security_AccessController__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AccessControlContext;
|
||||
class AccessController;
|
||||
class Permission;
|
||||
class PrivilegedAction;
|
||||
class PrivilegedExceptionAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AccessController : public ::java::lang::Object
|
||||
{
|
||||
|
||||
AccessController();
|
||||
public:
|
||||
static void checkPermission(::java::security::Permission *);
|
||||
static ::java::lang::Object * doPrivileged(::java::security::PrivilegedAction *);
|
||||
static ::java::lang::Object * doPrivileged(::java::security::PrivilegedAction *, ::java::security::AccessControlContext *);
|
||||
static ::java::lang::Object * doPrivileged(::java::security::PrivilegedExceptionAction *);
|
||||
static ::java::lang::Object * doPrivileged(::java::security::PrivilegedExceptionAction *, ::java::security::AccessControlContext *);
|
||||
static ::java::security::AccessControlContext * getContext();
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AccessController__
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AlgorithmParameterGenerator__
|
||||
#define __java_security_AlgorithmParameterGenerator__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AlgorithmParameterGenerator;
|
||||
class AlgorithmParameterGeneratorSpi;
|
||||
class AlgorithmParameters;
|
||||
class Provider;
|
||||
class SecureRandom;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AlgorithmParameterGenerator : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
AlgorithmParameterGenerator(::java::security::AlgorithmParameterGeneratorSpi *, ::java::security::Provider *, ::java::lang::String *);
|
||||
public:
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
static ::java::security::AlgorithmParameterGenerator * getInstance(::java::lang::String *);
|
||||
static ::java::security::AlgorithmParameterGenerator * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::AlgorithmParameterGenerator * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual void init(jint);
|
||||
virtual void init(jint, ::java::security::SecureRandom *);
|
||||
virtual void init(::java::security::spec::AlgorithmParameterSpec *);
|
||||
virtual void init(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
|
||||
virtual ::java::security::AlgorithmParameters * generateParameters();
|
||||
private:
|
||||
static ::java::lang::String * ALGORITHM_PARAMETER_GENERATOR;
|
||||
::java::security::AlgorithmParameterGeneratorSpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) paramGenSpi;
|
||||
::java::security::Provider * provider;
|
||||
::java::lang::String * algorithm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AlgorithmParameterGenerator__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AlgorithmParameterGeneratorSpi__
|
||||
#define __java_security_AlgorithmParameterGeneratorSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AlgorithmParameterGeneratorSpi;
|
||||
class AlgorithmParameters;
|
||||
class SecureRandom;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AlgorithmParameterGeneratorSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
AlgorithmParameterGeneratorSpi();
|
||||
public: // actually protected
|
||||
virtual void engineInit(jint, ::java::security::SecureRandom *) = 0;
|
||||
virtual void engineInit(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *) = 0;
|
||||
virtual ::java::security::AlgorithmParameters * engineGenerateParameters() = 0;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AlgorithmParameterGeneratorSpi__
|
||||
@@ -0,0 +1,56 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AlgorithmParameters__
|
||||
#define __java_security_AlgorithmParameters__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AlgorithmParameters;
|
||||
class AlgorithmParametersSpi;
|
||||
class Provider;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AlgorithmParameters : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
AlgorithmParameters(::java::security::AlgorithmParametersSpi *, ::java::security::Provider *, ::java::lang::String *);
|
||||
public:
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
static ::java::security::AlgorithmParameters * getInstance(::java::lang::String *);
|
||||
static ::java::security::AlgorithmParameters * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::AlgorithmParameters * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual void init(::java::security::spec::AlgorithmParameterSpec *);
|
||||
virtual void init(JArray< jbyte > *);
|
||||
virtual void init(JArray< jbyte > *, ::java::lang::String *);
|
||||
virtual ::java::security::spec::AlgorithmParameterSpec * getParameterSpec(::java::lang::Class *);
|
||||
virtual JArray< jbyte > * getEncoded();
|
||||
virtual JArray< jbyte > * getEncoded(::java::lang::String *);
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
static ::java::lang::String * ALGORITHM_PARAMETERS;
|
||||
::java::security::AlgorithmParametersSpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) paramSpi;
|
||||
::java::security::Provider * provider;
|
||||
::java::lang::String * algorithm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AlgorithmParameters__
|
||||
@@ -0,0 +1,44 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AlgorithmParametersSpi__
|
||||
#define __java_security_AlgorithmParametersSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AlgorithmParametersSpi;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AlgorithmParametersSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
AlgorithmParametersSpi();
|
||||
public: // actually protected
|
||||
virtual void engineInit(::java::security::spec::AlgorithmParameterSpec *) = 0;
|
||||
virtual void engineInit(JArray< jbyte > *) = 0;
|
||||
virtual void engineInit(JArray< jbyte > *, ::java::lang::String *) = 0;
|
||||
virtual ::java::security::spec::AlgorithmParameterSpec * engineGetParameterSpec(::java::lang::Class *) = 0;
|
||||
virtual JArray< jbyte > * engineGetEncoded() = 0;
|
||||
virtual JArray< jbyte > * engineGetEncoded(::java::lang::String *) = 0;
|
||||
virtual ::java::lang::String * engineToString() = 0;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AlgorithmParametersSpi__
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AllPermission$AllPermissionCollection__
|
||||
#define __java_security_AllPermission$AllPermissionCollection__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/PermissionCollection.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AllPermission$AllPermissionCollection;
|
||||
class Permission;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AllPermission$AllPermissionCollection : public ::java::security::PermissionCollection
|
||||
{
|
||||
|
||||
AllPermission$AllPermissionCollection();
|
||||
public:
|
||||
void add(::java::security::Permission *);
|
||||
jboolean implies(::java::security::Permission *);
|
||||
::java::util::Enumeration * elements();
|
||||
public: // actually package-private
|
||||
AllPermission$AllPermissionCollection(::java::security::AllPermission$AllPermissionCollection *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -4023755556366636806LL;
|
||||
jboolean __attribute__((aligned(__alignof__( ::java::security::PermissionCollection)))) all_allowed;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AllPermission$AllPermissionCollection__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_AllPermission__
|
||||
#define __java_security_AllPermission__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/Permission.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AllPermission;
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::AllPermission : public ::java::security::Permission
|
||||
{
|
||||
|
||||
public:
|
||||
AllPermission();
|
||||
AllPermission(::java::lang::String *, ::java::lang::String *);
|
||||
jboolean implies(::java::security::Permission *);
|
||||
jboolean equals(::java::lang::Object *);
|
||||
jint hashCode();
|
||||
::java::lang::String * getActions();
|
||||
::java::security::PermissionCollection * newPermissionCollection();
|
||||
private:
|
||||
static const jlong serialVersionUID = -2916474571451318075LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_AllPermission__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_BasicPermission$BasicPermissionCollection__
|
||||
#define __java_security_BasicPermission$BasicPermissionCollection__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/PermissionCollection.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class BasicPermission$BasicPermissionCollection;
|
||||
class Permission;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::BasicPermission$BasicPermissionCollection : public ::java::security::PermissionCollection
|
||||
{
|
||||
|
||||
public: // actually package-private
|
||||
BasicPermission$BasicPermissionCollection(::java::lang::Class *);
|
||||
public:
|
||||
void add(::java::security::Permission *);
|
||||
jboolean implies(::java::security::Permission *);
|
||||
::java::util::Enumeration * elements();
|
||||
private:
|
||||
static const jlong serialVersionUID = 739301742472979399LL;
|
||||
::java::util::Hashtable * __attribute__((aligned(__alignof__( ::java::security::PermissionCollection)))) permissions;
|
||||
jboolean all_allowed;
|
||||
::java::lang::Class * permClass;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_BasicPermission$BasicPermissionCollection__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_BasicPermission__
|
||||
#define __java_security_BasicPermission__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/Permission.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class BasicPermission;
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::BasicPermission : public ::java::security::Permission
|
||||
{
|
||||
|
||||
public:
|
||||
BasicPermission(::java::lang::String *);
|
||||
BasicPermission(::java::lang::String *, ::java::lang::String *);
|
||||
virtual jboolean implies(::java::security::Permission *);
|
||||
virtual jboolean equals(::java::lang::Object *);
|
||||
virtual jint hashCode();
|
||||
virtual ::java::lang::String * getActions();
|
||||
virtual ::java::security::PermissionCollection * newPermissionCollection();
|
||||
private:
|
||||
static const jlong serialVersionUID = 6279438298436773498LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_BasicPermission__
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Certificate__
|
||||
#define __java_security_Certificate__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Certificate;
|
||||
class Principal;
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Certificate : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::security::Principal * getGuarantor() = 0;
|
||||
virtual ::java::security::Principal * getPrincipal() = 0;
|
||||
virtual ::java::security::PublicKey * getPublicKey() = 0;
|
||||
virtual void encode(::java::io::OutputStream *) = 0;
|
||||
virtual void decode(::java::io::InputStream *) = 0;
|
||||
virtual ::java::lang::String * getFormat() = 0;
|
||||
virtual ::java::lang::String * toString(jboolean) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_Certificate__
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_CodeSource__
|
||||
#define __java_security_CodeSource__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace net
|
||||
{
|
||||
class URL;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class CodeSource;
|
||||
namespace cert
|
||||
{
|
||||
class Certificate;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::CodeSource : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
CodeSource(::java::net::URL *, JArray< ::java::security::cert::Certificate * > *);
|
||||
virtual jint hashCode();
|
||||
virtual jboolean equals(::java::lang::Object *);
|
||||
virtual ::java::net::URL * getLocation();
|
||||
virtual JArray< ::java::security::cert::Certificate * > * getCertificates();
|
||||
virtual jboolean implies(::java::security::CodeSource *);
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
void readObject(::java::io::ObjectInputStream *);
|
||||
void writeObject(::java::io::ObjectOutputStream *);
|
||||
static const jlong serialVersionUID = 4977541819976013951LL;
|
||||
::java::net::URL * __attribute__((aligned(__alignof__( ::java::lang::Object)))) location;
|
||||
::java::util::HashSet * certs;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_CodeSource__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_DigestException__
|
||||
#define __java_security_DigestException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class DigestException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::DigestException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
DigestException();
|
||||
DigestException(::java::lang::String *);
|
||||
DigestException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
DigestException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 5821450303093652515LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_DigestException__
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_DigestInputStream__
|
||||
#define __java_security_DigestInputStream__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/io/FilterInputStream.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class DigestInputStream;
|
||||
class MessageDigest;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::DigestInputStream : public ::java::io::FilterInputStream
|
||||
{
|
||||
|
||||
public:
|
||||
DigestInputStream(::java::io::InputStream *, ::java::security::MessageDigest *);
|
||||
virtual ::java::security::MessageDigest * getMessageDigest();
|
||||
virtual void setMessageDigest(::java::security::MessageDigest *);
|
||||
virtual jint read();
|
||||
virtual jint read(JArray< jbyte > *, jint, jint);
|
||||
virtual void on(jboolean);
|
||||
virtual ::java::lang::String * toString();
|
||||
public: // actually protected
|
||||
::java::security::MessageDigest * __attribute__((aligned(__alignof__( ::java::io::FilterInputStream)))) digest;
|
||||
private:
|
||||
jboolean state;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_DigestInputStream__
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_DigestOutputStream__
|
||||
#define __java_security_DigestOutputStream__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/io/FilterOutputStream.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class DigestOutputStream;
|
||||
class MessageDigest;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::DigestOutputStream : public ::java::io::FilterOutputStream
|
||||
{
|
||||
|
||||
public:
|
||||
DigestOutputStream(::java::io::OutputStream *, ::java::security::MessageDigest *);
|
||||
virtual ::java::security::MessageDigest * getMessageDigest();
|
||||
virtual void setMessageDigest(::java::security::MessageDigest *);
|
||||
virtual void write(jint);
|
||||
virtual void write(JArray< jbyte > *, jint, jint);
|
||||
virtual void on(jboolean);
|
||||
virtual ::java::lang::String * toString();
|
||||
public: // actually protected
|
||||
::java::security::MessageDigest * __attribute__((aligned(__alignof__( ::java::io::FilterOutputStream)))) digest;
|
||||
private:
|
||||
jboolean state;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_DigestOutputStream__
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_DomainCombiner__
|
||||
#define __java_security_DomainCombiner__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class DomainCombiner;
|
||||
class ProtectionDomain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::DomainCombiner : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual JArray< ::java::security::ProtectionDomain * > * combine(JArray< ::java::security::ProtectionDomain * > *, JArray< ::java::security::ProtectionDomain * > *) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_DomainCombiner__
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_DummyKeyPairGenerator__
|
||||
#define __java_security_DummyKeyPairGenerator__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/KeyPairGenerator.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class DummyKeyPairGenerator;
|
||||
class KeyPair;
|
||||
class KeyPairGeneratorSpi;
|
||||
class SecureRandom;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::DummyKeyPairGenerator : public ::java::security::KeyPairGenerator
|
||||
{
|
||||
|
||||
public:
|
||||
DummyKeyPairGenerator(::java::security::KeyPairGeneratorSpi *, ::java::lang::String *);
|
||||
::java::lang::Object * clone();
|
||||
void initialize(jint, ::java::security::SecureRandom *);
|
||||
void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
|
||||
::java::security::KeyPair * generateKeyPair();
|
||||
private:
|
||||
::java::security::KeyPairGeneratorSpi * __attribute__((aligned(__alignof__( ::java::security::KeyPairGenerator)))) kpgSpi;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_DummyKeyPairGenerator__
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_DummyMessageDigest__
|
||||
#define __java_security_DummyMessageDigest__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/MessageDigest.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class DummyMessageDigest;
|
||||
class MessageDigestSpi;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::DummyMessageDigest : public ::java::security::MessageDigest
|
||||
{
|
||||
|
||||
public:
|
||||
DummyMessageDigest(::java::security::MessageDigestSpi *, ::java::lang::String *);
|
||||
::java::lang::Object * clone();
|
||||
JArray< jbyte > * engineDigest();
|
||||
jint engineDigest(JArray< jbyte > *, jint, jint);
|
||||
jint engineGetDigestLength();
|
||||
void engineReset();
|
||||
void engineUpdate(jbyte);
|
||||
void engineUpdate(JArray< jbyte > *, jint, jint);
|
||||
private:
|
||||
::java::security::MessageDigestSpi * __attribute__((aligned(__alignof__( ::java::security::MessageDigest)))) mdSpi;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_DummyMessageDigest__
|
||||
@@ -0,0 +1,47 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_DummySignature__
|
||||
#define __java_security_DummySignature__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/Signature.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class DummySignature;
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
class SignatureSpi;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::DummySignature : public ::java::security::Signature
|
||||
{
|
||||
|
||||
public:
|
||||
DummySignature(::java::security::SignatureSpi *, ::java::lang::String *);
|
||||
::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
void engineInitVerify(::java::security::PublicKey *);
|
||||
void engineInitSign(::java::security::PrivateKey *);
|
||||
void engineUpdate(jbyte);
|
||||
void engineUpdate(JArray< jbyte > *, jint, jint);
|
||||
JArray< jbyte > * engineSign();
|
||||
jboolean engineVerify(JArray< jbyte > *);
|
||||
void engineSetParameter(::java::lang::String *, ::java::lang::Object *);
|
||||
::java::lang::Object * engineGetParameter(::java::lang::String *);
|
||||
private:
|
||||
::java::security::SignatureSpi * __attribute__((aligned(__alignof__( ::java::security::Signature)))) sigSpi;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_DummySignature__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_GeneralSecurityException__
|
||||
#define __java_security_GeneralSecurityException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Exception.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class GeneralSecurityException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::GeneralSecurityException : public ::java::lang::Exception
|
||||
{
|
||||
|
||||
public:
|
||||
GeneralSecurityException();
|
||||
GeneralSecurityException(::java::lang::String *);
|
||||
GeneralSecurityException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
GeneralSecurityException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 894798122053539237LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_GeneralSecurityException__
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Guard__
|
||||
#define __java_security_Guard__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Guard;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Guard : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual void checkGuard(::java::lang::Object *) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_Guard__
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_GuardedObject__
|
||||
#define __java_security_GuardedObject__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Guard;
|
||||
class GuardedObject;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::GuardedObject : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
GuardedObject(::java::lang::Object *, ::java::security::Guard *);
|
||||
virtual ::java::lang::Object * getObject();
|
||||
private:
|
||||
void writeObject(::java::io::ObjectOutputStream *);
|
||||
static const jlong serialVersionUID = -5240450096227834308LL;
|
||||
::java::security::Guard * __attribute__((aligned(__alignof__( ::java::lang::Object)))) guard;
|
||||
::java::lang::Object * object;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_GuardedObject__
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Identity__
|
||||
#define __java_security_Identity__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Certificate;
|
||||
class Identity;
|
||||
class IdentityScope;
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Identity : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
Identity();
|
||||
public:
|
||||
Identity(::java::lang::String *, ::java::security::IdentityScope *);
|
||||
Identity(::java::lang::String *);
|
||||
virtual ::java::lang::String * getName();
|
||||
virtual ::java::security::IdentityScope * getScope();
|
||||
virtual ::java::security::PublicKey * getPublicKey();
|
||||
virtual void setPublicKey(::java::security::PublicKey *);
|
||||
virtual void setInfo(::java::lang::String *);
|
||||
virtual ::java::lang::String * getInfo();
|
||||
virtual void addCertificate(::java::security::Certificate *);
|
||||
virtual void removeCertificate(::java::security::Certificate *);
|
||||
virtual JArray< ::java::security::Certificate * > * certificates();
|
||||
virtual jboolean equals(::java::lang::Object *);
|
||||
public: // actually protected
|
||||
virtual jboolean identityEquals(::java::security::Identity *);
|
||||
public:
|
||||
virtual ::java::lang::String * toString();
|
||||
virtual ::java::lang::String * toString(jboolean);
|
||||
virtual jint hashCode();
|
||||
private:
|
||||
static const jlong serialVersionUID = 3609922007826600659LL;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name;
|
||||
::java::security::IdentityScope * scope;
|
||||
::java::security::PublicKey * publicKey;
|
||||
::java::lang::String * info;
|
||||
::java::util::Vector * certificates__;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Identity__
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_IdentityScope__
|
||||
#define __java_security_IdentityScope__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/Identity.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Identity;
|
||||
class IdentityScope;
|
||||
class Principal;
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::IdentityScope : public ::java::security::Identity
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
IdentityScope();
|
||||
public:
|
||||
IdentityScope(::java::lang::String *);
|
||||
IdentityScope(::java::lang::String *, ::java::security::IdentityScope *);
|
||||
static ::java::security::IdentityScope * getSystemScope();
|
||||
public: // actually protected
|
||||
static void setSystemScope(::java::security::IdentityScope *);
|
||||
public:
|
||||
virtual jint size() = 0;
|
||||
virtual ::java::security::Identity * getIdentity(::java::lang::String *) = 0;
|
||||
virtual ::java::security::Identity * getIdentity(::java::security::Principal *);
|
||||
virtual ::java::security::Identity * getIdentity(::java::security::PublicKey *) = 0;
|
||||
virtual void addIdentity(::java::security::Identity *) = 0;
|
||||
virtual void removeIdentity(::java::security::Identity *) = 0;
|
||||
virtual ::java::util::Enumeration * identities() = 0;
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
static const jlong serialVersionUID = -2337346281189773310LL;
|
||||
static ::java::security::IdentityScope * systemScope;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_IdentityScope__
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_IntersectingDomainCombiner__
|
||||
#define __java_security_IntersectingDomainCombiner__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class IntersectingDomainCombiner;
|
||||
class ProtectionDomain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::IntersectingDomainCombiner : public ::java::lang::Object
|
||||
{
|
||||
|
||||
IntersectingDomainCombiner();
|
||||
public:
|
||||
JArray< ::java::security::ProtectionDomain * > * combine(JArray< ::java::security::ProtectionDomain * > *, JArray< ::java::security::ProtectionDomain * > *);
|
||||
public: // actually package-private
|
||||
static ::java::security::IntersectingDomainCombiner * SINGLETON;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_IntersectingDomainCombiner__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_InvalidAlgorithmParameterException__
|
||||
#define __java_security_InvalidAlgorithmParameterException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class InvalidAlgorithmParameterException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::InvalidAlgorithmParameterException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
InvalidAlgorithmParameterException();
|
||||
InvalidAlgorithmParameterException(::java::lang::String *);
|
||||
InvalidAlgorithmParameterException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
InvalidAlgorithmParameterException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 2864672297499471472LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_InvalidAlgorithmParameterException__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_InvalidKeyException__
|
||||
#define __java_security_InvalidKeyException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/KeyException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class InvalidKeyException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::InvalidKeyException : public ::java::security::KeyException
|
||||
{
|
||||
|
||||
public:
|
||||
InvalidKeyException();
|
||||
InvalidKeyException(::java::lang::String *);
|
||||
InvalidKeyException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
InvalidKeyException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 5698479920593359816LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_InvalidKeyException__
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_InvalidParameterException__
|
||||
#define __java_security_InvalidParameterException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/IllegalArgumentException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class InvalidParameterException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::InvalidParameterException : public ::java::lang::IllegalArgumentException
|
||||
{
|
||||
|
||||
public:
|
||||
InvalidParameterException();
|
||||
InvalidParameterException(::java::lang::String *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -857968536935667808LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_InvalidParameterException__
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Key__
|
||||
#define __java_security_Key__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Key;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Key : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::String * getAlgorithm() = 0;
|
||||
virtual ::java::lang::String * getFormat() = 0;
|
||||
virtual JArray< jbyte > * getEncoded() = 0;
|
||||
static const jlong serialVersionUID = 6603384152749567654LL;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_Key__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyException__
|
||||
#define __java_security_KeyException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class KeyException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
KeyException();
|
||||
KeyException(::java::lang::String *);
|
||||
KeyException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
KeyException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -7483676942812432108LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyException__
|
||||
@@ -0,0 +1,54 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyFactory__
|
||||
#define __java_security_KeyFactory__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Key;
|
||||
class KeyFactory;
|
||||
class KeyFactorySpi;
|
||||
class PrivateKey;
|
||||
class Provider;
|
||||
class PublicKey;
|
||||
namespace spec
|
||||
{
|
||||
class KeySpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyFactory : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
KeyFactory(::java::security::KeyFactorySpi *, ::java::security::Provider *, ::java::lang::String *);
|
||||
public:
|
||||
static ::java::security::KeyFactory * getInstance(::java::lang::String *);
|
||||
static ::java::security::KeyFactory * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::KeyFactory * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
virtual ::java::security::PublicKey * generatePublic(::java::security::spec::KeySpec *);
|
||||
virtual ::java::security::PrivateKey * generatePrivate(::java::security::spec::KeySpec *);
|
||||
virtual ::java::security::spec::KeySpec * getKeySpec(::java::security::Key *, ::java::lang::Class *);
|
||||
virtual ::java::security::Key * translateKey(::java::security::Key *);
|
||||
private:
|
||||
static ::java::lang::String * KEY_FACTORY;
|
||||
::java::security::KeyFactorySpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) keyFacSpi;
|
||||
::java::security::Provider * provider;
|
||||
::java::lang::String * algorithm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyFactory__
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyFactorySpi__
|
||||
#define __java_security_KeyFactorySpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Key;
|
||||
class KeyFactorySpi;
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
namespace spec
|
||||
{
|
||||
class KeySpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyFactorySpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
KeyFactorySpi();
|
||||
public: // actually protected
|
||||
virtual ::java::security::PublicKey * engineGeneratePublic(::java::security::spec::KeySpec *) = 0;
|
||||
virtual ::java::security::PrivateKey * engineGeneratePrivate(::java::security::spec::KeySpec *) = 0;
|
||||
virtual ::java::security::spec::KeySpec * engineGetKeySpec(::java::security::Key *, ::java::lang::Class *) = 0;
|
||||
virtual ::java::security::Key * engineTranslateKey(::java::security::Key *) = 0;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyFactorySpi__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyManagementException__
|
||||
#define __java_security_KeyManagementException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/KeyException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class KeyManagementException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyManagementException : public ::java::security::KeyException
|
||||
{
|
||||
|
||||
public:
|
||||
KeyManagementException();
|
||||
KeyManagementException(::java::lang::String *);
|
||||
KeyManagementException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
KeyManagementException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 947674216157062695LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyManagementException__
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyPair__
|
||||
#define __java_security_KeyPair__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class KeyPair;
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyPair : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
KeyPair(::java::security::PublicKey *, ::java::security::PrivateKey *);
|
||||
::java::security::PublicKey * getPublic();
|
||||
::java::security::PrivateKey * getPrivate();
|
||||
private:
|
||||
static const jlong serialVersionUID = -7565189502268009837LL;
|
||||
::java::security::PublicKey * __attribute__((aligned(__alignof__( ::java::lang::Object)))) publicKey;
|
||||
::java::security::PrivateKey * privateKey;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyPair__
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyPairGenerator__
|
||||
#define __java_security_KeyPairGenerator__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/KeyPairGeneratorSpi.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class KeyPair;
|
||||
class KeyPairGenerator;
|
||||
class Provider;
|
||||
class SecureRandom;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyPairGenerator : public ::java::security::KeyPairGeneratorSpi
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
KeyPairGenerator(::java::lang::String *);
|
||||
public:
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
static ::java::security::KeyPairGenerator * getInstance(::java::lang::String *);
|
||||
static ::java::security::KeyPairGenerator * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::KeyPairGenerator * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual void initialize(jint);
|
||||
virtual void initialize(jint, ::java::security::SecureRandom *);
|
||||
virtual void initialize(::java::security::spec::AlgorithmParameterSpec *);
|
||||
virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
|
||||
virtual ::java::security::KeyPair * genKeyPair();
|
||||
virtual ::java::security::KeyPair * generateKeyPair();
|
||||
private:
|
||||
static ::java::lang::String * KEY_PAIR_GENERATOR;
|
||||
public: // actually package-private
|
||||
::java::security::Provider * __attribute__((aligned(__alignof__( ::java::security::KeyPairGeneratorSpi)))) provider;
|
||||
private:
|
||||
::java::lang::String * algorithm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyPairGenerator__
|
||||
@@ -0,0 +1,41 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyPairGeneratorSpi__
|
||||
#define __java_security_KeyPairGeneratorSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class KeyPair;
|
||||
class KeyPairGeneratorSpi;
|
||||
class SecureRandom;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyPairGeneratorSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
KeyPairGeneratorSpi();
|
||||
virtual void initialize(jint, ::java::security::SecureRandom *) = 0;
|
||||
virtual void initialize(::java::security::spec::AlgorithmParameterSpec *, ::java::security::SecureRandom *);
|
||||
virtual ::java::security::KeyPair * generateKeyPair() = 0;
|
||||
public: // actually protected
|
||||
virtual ::java::lang::Object * clone();
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyPairGeneratorSpi__
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyStore__
|
||||
#define __java_security_KeyStore__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Key;
|
||||
class KeyStore;
|
||||
class KeyStoreSpi;
|
||||
class Provider;
|
||||
namespace cert
|
||||
{
|
||||
class Certificate;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyStore : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
KeyStore(::java::security::KeyStoreSpi *, ::java::security::Provider *, ::java::lang::String *);
|
||||
public:
|
||||
static ::java::security::KeyStore * getInstance(::java::lang::String *);
|
||||
static ::java::security::KeyStore * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::KeyStore * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
static ::java::lang::String * getDefaultType();
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual ::java::lang::String * getType();
|
||||
virtual ::java::security::Key * getKey(::java::lang::String *, JArray< jchar > *);
|
||||
virtual JArray< ::java::security::cert::Certificate * > * getCertificateChain(::java::lang::String *);
|
||||
virtual ::java::security::cert::Certificate * getCertificate(::java::lang::String *);
|
||||
virtual ::java::util::Date * getCreationDate(::java::lang::String *);
|
||||
virtual void setKeyEntry(::java::lang::String *, ::java::security::Key *, JArray< jchar > *, JArray< ::java::security::cert::Certificate * > *);
|
||||
virtual void setKeyEntry(::java::lang::String *, JArray< jbyte > *, JArray< ::java::security::cert::Certificate * > *);
|
||||
virtual void setCertificateEntry(::java::lang::String *, ::java::security::cert::Certificate *);
|
||||
virtual void deleteEntry(::java::lang::String *);
|
||||
virtual ::java::util::Enumeration * aliases();
|
||||
virtual jboolean containsAlias(::java::lang::String *);
|
||||
virtual jint size();
|
||||
virtual jboolean isKeyEntry(::java::lang::String *);
|
||||
virtual jboolean isCertificateEntry(::java::lang::String *);
|
||||
virtual ::java::lang::String * getCertificateAlias(::java::security::cert::Certificate *);
|
||||
virtual void store(::java::io::OutputStream *, JArray< jchar > *);
|
||||
virtual void load(::java::io::InputStream *, JArray< jchar > *);
|
||||
private:
|
||||
static ::java::lang::String * KEY_STORE;
|
||||
::java::security::KeyStoreSpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) keyStoreSpi;
|
||||
::java::security::Provider * provider;
|
||||
::java::lang::String * type;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyStore__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyStoreException__
|
||||
#define __java_security_KeyStoreException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class KeyStoreException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyStoreException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
KeyStoreException();
|
||||
KeyStoreException(::java::lang::String *);
|
||||
KeyStoreException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
KeyStoreException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -1119353179322377262LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyStoreException__
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_KeyStoreSpi__
|
||||
#define __java_security_KeyStoreSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Key;
|
||||
class KeyStoreSpi;
|
||||
namespace cert
|
||||
{
|
||||
class Certificate;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::KeyStoreSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
KeyStoreSpi();
|
||||
virtual ::java::security::Key * engineGetKey(::java::lang::String *, JArray< jchar > *) = 0;
|
||||
virtual JArray< ::java::security::cert::Certificate * > * engineGetCertificateChain(::java::lang::String *) = 0;
|
||||
virtual ::java::security::cert::Certificate * engineGetCertificate(::java::lang::String *) = 0;
|
||||
virtual ::java::util::Date * engineGetCreationDate(::java::lang::String *) = 0;
|
||||
virtual void engineSetKeyEntry(::java::lang::String *, ::java::security::Key *, JArray< jchar > *, JArray< ::java::security::cert::Certificate * > *) = 0;
|
||||
virtual void engineSetKeyEntry(::java::lang::String *, JArray< jbyte > *, JArray< ::java::security::cert::Certificate * > *) = 0;
|
||||
virtual void engineSetCertificateEntry(::java::lang::String *, ::java::security::cert::Certificate *) = 0;
|
||||
virtual void engineDeleteEntry(::java::lang::String *) = 0;
|
||||
virtual ::java::util::Enumeration * engineAliases() = 0;
|
||||
virtual jboolean engineContainsAlias(::java::lang::String *) = 0;
|
||||
virtual jint engineSize() = 0;
|
||||
virtual jboolean engineIsKeyEntry(::java::lang::String *) = 0;
|
||||
virtual jboolean engineIsCertificateEntry(::java::lang::String *) = 0;
|
||||
virtual ::java::lang::String * engineGetCertificateAlias(::java::security::cert::Certificate *) = 0;
|
||||
virtual void engineStore(::java::io::OutputStream *, JArray< jchar > *) = 0;
|
||||
virtual void engineLoad(::java::io::InputStream *, JArray< jchar > *) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_KeyStoreSpi__
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_MessageDigest__
|
||||
#define __java_security_MessageDigest__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/MessageDigestSpi.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace nio
|
||||
{
|
||||
class ByteBuffer;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class MessageDigest;
|
||||
class Provider;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::MessageDigest : public ::java::security::MessageDigestSpi
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
MessageDigest(::java::lang::String *);
|
||||
public:
|
||||
static ::java::security::MessageDigest * getInstance(::java::lang::String *);
|
||||
static ::java::security::MessageDigest * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::MessageDigest * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual void update(jbyte);
|
||||
virtual void update(JArray< jbyte > *, jint, jint);
|
||||
virtual void update(JArray< jbyte > *);
|
||||
virtual void update(::java::nio::ByteBuffer *);
|
||||
virtual JArray< jbyte > * digest();
|
||||
virtual jint digest(JArray< jbyte > *, jint, jint);
|
||||
virtual JArray< jbyte > * digest(JArray< jbyte > *);
|
||||
virtual ::java::lang::String * toString();
|
||||
static jboolean isEqual(JArray< jbyte > *, JArray< jbyte > *);
|
||||
virtual void reset();
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
virtual jint getDigestLength();
|
||||
virtual ::java::lang::Object * clone();
|
||||
private:
|
||||
::java::lang::String * digestToString();
|
||||
static ::java::lang::String * MESSAGE_DIGEST;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::security::MessageDigestSpi)))) algorithm;
|
||||
public: // actually package-private
|
||||
::java::security::Provider * provider;
|
||||
private:
|
||||
JArray< jbyte > * lastDigest;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_MessageDigest__
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_MessageDigestSpi__
|
||||
#define __java_security_MessageDigestSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace nio
|
||||
{
|
||||
class ByteBuffer;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class MessageDigestSpi;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::MessageDigestSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
MessageDigestSpi();
|
||||
public: // actually protected
|
||||
virtual jint engineGetDigestLength();
|
||||
virtual void engineUpdate(jbyte) = 0;
|
||||
virtual void engineUpdate(JArray< jbyte > *, jint, jint) = 0;
|
||||
virtual void engineUpdate(::java::nio::ByteBuffer *);
|
||||
virtual JArray< jbyte > * engineDigest() = 0;
|
||||
virtual jint engineDigest(JArray< jbyte > *, jint, jint);
|
||||
virtual void engineReset() = 0;
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_MessageDigestSpi__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_NoSuchAlgorithmException__
|
||||
#define __java_security_NoSuchAlgorithmException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class NoSuchAlgorithmException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::NoSuchAlgorithmException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
NoSuchAlgorithmException();
|
||||
NoSuchAlgorithmException(::java::lang::String *);
|
||||
NoSuchAlgorithmException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
NoSuchAlgorithmException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -7443947487218346562LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_NoSuchAlgorithmException__
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_NoSuchProviderException__
|
||||
#define __java_security_NoSuchProviderException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class NoSuchProviderException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::NoSuchProviderException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
NoSuchProviderException();
|
||||
NoSuchProviderException(::java::lang::String *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 8488111756688534474LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_NoSuchProviderException__
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Permission__
|
||||
#define __java_security_Permission__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Permission : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
Permission(::java::lang::String *);
|
||||
virtual void checkGuard(::java::lang::Object *);
|
||||
virtual jboolean implies(::java::security::Permission *) = 0;
|
||||
virtual jboolean equals(::java::lang::Object *) = 0;
|
||||
virtual jint hashCode() = 0;
|
||||
virtual ::java::lang::String * getName();
|
||||
virtual ::java::lang::String * getActions() = 0;
|
||||
virtual ::java::security::PermissionCollection * newPermissionCollection();
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
static const jlong serialVersionUID = -5636570222231596674LL;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) name;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Permission__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_PermissionCollection__
|
||||
#define __java_security_PermissionCollection__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::PermissionCollection : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
PermissionCollection();
|
||||
virtual void add(::java::security::Permission *) = 0;
|
||||
virtual jboolean implies(::java::security::Permission *) = 0;
|
||||
virtual ::java::util::Enumeration * elements() = 0;
|
||||
virtual void setReadOnly();
|
||||
virtual jboolean isReadOnly();
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
static const jlong serialVersionUID = -6727011328946861783LL;
|
||||
jboolean __attribute__((aligned(__alignof__( ::java::lang::Object)))) readOnly;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_PermissionCollection__
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Permissions$1__
|
||||
#define __java_security_Permissions$1__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Permissions;
|
||||
class Permissions$1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Permissions$1 : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually package-private
|
||||
Permissions$1(::java::security::Permissions *);
|
||||
public:
|
||||
jboolean hasMoreElements();
|
||||
::java::lang::Object * nextElement();
|
||||
public: // actually package-private
|
||||
::java::util::Enumeration * __attribute__((aligned(__alignof__( ::java::lang::Object)))) main_enum;
|
||||
::java::util::Enumeration * sub_enum;
|
||||
::java::security::Permissions * this$0;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Permissions$1__
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Permissions$PermissionsHash__
|
||||
#define __java_security_Permissions$PermissionsHash__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/PermissionCollection.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Permission;
|
||||
class Permissions$PermissionsHash;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Permissions$PermissionsHash : public ::java::security::PermissionCollection
|
||||
{
|
||||
|
||||
Permissions$PermissionsHash();
|
||||
public:
|
||||
void add(::java::security::Permission *);
|
||||
jboolean implies(::java::security::Permission *);
|
||||
::java::util::Enumeration * elements();
|
||||
public: // actually package-private
|
||||
Permissions$PermissionsHash(::java::security::Permissions$PermissionsHash *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -8491988220802933440LL;
|
||||
::java::util::Hashtable * __attribute__((aligned(__alignof__( ::java::security::PermissionCollection)))) perms;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Permissions$PermissionsHash__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Permissions__
|
||||
#define __java_security_Permissions__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/PermissionCollection.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
class Permissions;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Permissions : public ::java::security::PermissionCollection
|
||||
{
|
||||
|
||||
public:
|
||||
Permissions();
|
||||
void add(::java::security::Permission *);
|
||||
jboolean implies(::java::security::Permission *);
|
||||
::java::util::Enumeration * elements();
|
||||
private:
|
||||
static const jlong serialVersionUID = 4858622370623524688LL;
|
||||
::java::security::PermissionCollection * __attribute__((aligned(__alignof__( ::java::security::PermissionCollection)))) allPermission;
|
||||
public: // actually package-private
|
||||
::java::util::Hashtable * perms;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Permissions__
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Policy__
|
||||
#define __java_security_Policy__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class CodeSource;
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
class Policy;
|
||||
class ProtectionDomain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Policy : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
Policy();
|
||||
static ::java::security::Policy * getPolicy();
|
||||
static void setPolicy(::java::security::Policy *);
|
||||
private:
|
||||
static void setup(::java::security::Policy *);
|
||||
public: // actually package-private
|
||||
static ::java::security::Policy * getCurrentPolicy();
|
||||
static jboolean isLoaded();
|
||||
public:
|
||||
virtual ::java::security::PermissionCollection * getPermissions(::java::security::CodeSource *) = 0;
|
||||
virtual ::java::security::PermissionCollection * getPermissions(::java::security::ProtectionDomain *);
|
||||
virtual jboolean implies(::java::security::ProtectionDomain *, ::java::security::Permission *);
|
||||
virtual void refresh() = 0;
|
||||
private:
|
||||
static ::java::security::Policy * currentPolicy;
|
||||
::java::util::Map * __attribute__((aligned(__alignof__( ::java::lang::Object)))) pd2pc;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Policy__
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Principal__
|
||||
#define __java_security_Principal__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Principal;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Principal : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual jboolean equals(::java::lang::Object *) = 0;
|
||||
virtual ::java::lang::String * toString() = 0;
|
||||
virtual jint hashCode() = 0;
|
||||
virtual ::java::lang::String * getName() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_Principal__
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_PrivateKey__
|
||||
#define __java_security_PrivateKey__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivateKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::PrivateKey : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::String * getAlgorithm() = 0;
|
||||
virtual ::java::lang::String * getFormat() = 0;
|
||||
virtual JArray< jbyte > * getEncoded() = 0;
|
||||
static const jlong serialVersionUID = 6034044314589513430LL;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_PrivateKey__
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_PrivilegedAction__
|
||||
#define __java_security_PrivilegedAction__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivilegedAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::PrivilegedAction : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::Object * run() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_PrivilegedAction__
|
||||
@@ -0,0 +1,36 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_PrivilegedActionException__
|
||||
#define __java_security_PrivilegedActionException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Exception.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivilegedActionException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::PrivilegedActionException : public ::java::lang::Exception
|
||||
{
|
||||
|
||||
public:
|
||||
PrivilegedActionException(::java::lang::Exception *);
|
||||
virtual ::java::lang::Exception * getException();
|
||||
virtual ::java::lang::Throwable * getCause();
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
static const jlong serialVersionUID = 4724086851538908602LL;
|
||||
::java::lang::Exception * __attribute__((aligned(__alignof__( ::java::lang::Exception)))) exception;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_PrivilegedActionException__
|
||||
@@ -0,0 +1,29 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_PrivilegedExceptionAction__
|
||||
#define __java_security_PrivilegedExceptionAction__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivilegedExceptionAction;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::PrivilegedExceptionAction : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::Object * run() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_PrivilegedExceptionAction__
|
||||
@@ -0,0 +1,52 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_ProtectionDomain__
|
||||
#define __java_security_ProtectionDomain__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class CodeSource;
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
class Principal;
|
||||
class ProtectionDomain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::ProtectionDomain : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
ProtectionDomain(::java::security::CodeSource *, ::java::security::PermissionCollection *);
|
||||
ProtectionDomain(::java::security::CodeSource *, ::java::security::PermissionCollection *, ::java::lang::ClassLoader *, JArray< ::java::security::Principal * > *);
|
||||
private:
|
||||
ProtectionDomain(::java::security::CodeSource *, ::java::security::PermissionCollection *, ::java::lang::ClassLoader *, JArray< ::java::security::Principal * > *, jboolean);
|
||||
public:
|
||||
virtual ::java::security::CodeSource * getCodeSource();
|
||||
virtual ::java::lang::ClassLoader * getClassLoader();
|
||||
virtual JArray< ::java::security::Principal * > * getPrincipals();
|
||||
virtual ::java::security::PermissionCollection * getPermissions();
|
||||
virtual jboolean implies(::java::security::Permission *);
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
::java::security::CodeSource * __attribute__((aligned(__alignof__( ::java::lang::Object)))) code_source;
|
||||
::java::security::PermissionCollection * perms;
|
||||
::java::lang::ClassLoader * classloader;
|
||||
JArray< ::java::security::Principal * > * principals;
|
||||
jboolean staticBinding;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_ProtectionDomain__
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Provider__
|
||||
#define __java_security_Provider__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/util/Properties.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Provider;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Provider : public ::java::util::Properties
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
Provider(::java::lang::String *, jdouble, ::java::lang::String *);
|
||||
public:
|
||||
virtual ::java::lang::String * getName();
|
||||
virtual jdouble getVersion();
|
||||
virtual ::java::lang::String * getInfo();
|
||||
virtual ::java::lang::Object * put(::java::lang::Object *, ::java::lang::Object *);
|
||||
virtual ::java::lang::Object * get(::java::lang::Object *);
|
||||
virtual ::java::lang::Object * remove(::java::lang::Object *);
|
||||
virtual void clear();
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
::java::lang::Object * toCanonicalKey(::java::lang::Object *);
|
||||
static const jlong serialVersionUID = -4298000515446427739LL;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::util::Properties)))) info;
|
||||
::java::lang::String * name;
|
||||
jdouble version;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Provider__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_ProviderException__
|
||||
#define __java_security_ProviderException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/RuntimeException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class ProviderException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::ProviderException : public ::java::lang::RuntimeException
|
||||
{
|
||||
|
||||
public:
|
||||
ProviderException();
|
||||
ProviderException(::java::lang::String *);
|
||||
ProviderException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
ProviderException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 5256023526693665674LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_ProviderException__
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_PublicKey__
|
||||
#define __java_security_PublicKey__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PublicKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::PublicKey : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::String * getAlgorithm() = 0;
|
||||
virtual ::java::lang::String * getFormat() = 0;
|
||||
virtual JArray< jbyte > * getEncoded() = 0;
|
||||
static const jlong serialVersionUID = 7187392471159151072LL;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_PublicKey__
|
||||
@@ -0,0 +1,48 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_SecureClassLoader__
|
||||
#define __java_security_SecureClassLoader__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/ClassLoader.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace nio
|
||||
{
|
||||
class ByteBuffer;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class CodeSource;
|
||||
class PermissionCollection;
|
||||
class ProtectionDomain;
|
||||
class SecureClassLoader;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::SecureClassLoader : public ::java::lang::ClassLoader
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
SecureClassLoader(::java::lang::ClassLoader *);
|
||||
SecureClassLoader();
|
||||
virtual ::java::lang::Class * defineClass(::java::lang::String *, JArray< jbyte > *, jint, jint, ::java::security::CodeSource *);
|
||||
virtual ::java::lang::Class * defineClass(::java::lang::String *, ::java::nio::ByteBuffer *, ::java::security::CodeSource *);
|
||||
private:
|
||||
::java::security::ProtectionDomain * getProtectionDomain(::java::security::CodeSource *);
|
||||
public: // actually protected
|
||||
virtual ::java::security::PermissionCollection * getPermissions(::java::security::CodeSource *);
|
||||
private:
|
||||
::java::util::HashMap * __attribute__((aligned(__alignof__( ::java::lang::ClassLoader)))) protectionDomainCache;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_SecureClassLoader__
|
||||
@@ -0,0 +1,71 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_SecureRandom__
|
||||
#define __java_security_SecureRandom__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/util/Random.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Provider;
|
||||
class SecureRandom;
|
||||
class SecureRandomSpi;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::SecureRandom : public ::java::util::Random
|
||||
{
|
||||
|
||||
public:
|
||||
SecureRandom();
|
||||
SecureRandom(JArray< jbyte > *);
|
||||
public: // actually protected
|
||||
SecureRandom(::java::security::SecureRandomSpi *, ::java::security::Provider *);
|
||||
private:
|
||||
SecureRandom(::java::security::SecureRandomSpi *, ::java::security::Provider *, ::java::lang::String *);
|
||||
public:
|
||||
static ::java::security::SecureRandom * getInstance(::java::lang::String *);
|
||||
static ::java::security::SecureRandom * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::SecureRandom * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
virtual void setSeed(JArray< jbyte > *);
|
||||
virtual void setSeed(jlong);
|
||||
virtual void nextBytes(JArray< jbyte > *);
|
||||
public: // actually protected
|
||||
virtual jint next(jint);
|
||||
public:
|
||||
static JArray< jbyte > * getSeed(jint);
|
||||
virtual JArray< jbyte > * generateSeed(jint);
|
||||
private:
|
||||
static jint generateSeed(JArray< jbyte > *);
|
||||
static jint generateSeed(JArray< jbyte > *, jint, jint);
|
||||
static ::java::lang::String * SECURE_RANDOM;
|
||||
static const jlong serialVersionUID = 4940670005562187LL;
|
||||
public: // actually package-private
|
||||
jlong __attribute__((aligned(__alignof__( ::java::util::Random)))) counter;
|
||||
::java::security::Provider * provider;
|
||||
JArray< jbyte > * randomBytes;
|
||||
jint randomBytesUsed;
|
||||
::java::security::SecureRandomSpi * secureRandomSpi;
|
||||
JArray< jbyte > * state;
|
||||
private:
|
||||
::java::lang::String * algorithm;
|
||||
jboolean isSeeded;
|
||||
static ::java::lang::String * SECURERANDOM_SOURCE;
|
||||
static ::java::lang::String * JAVA_SECURITY_EGD;
|
||||
static ::java::util::logging::Logger * logger;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_SecureRandom__
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_SecureRandomSpi__
|
||||
#define __java_security_SecureRandomSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class SecureRandomSpi;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::SecureRandomSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
SecureRandomSpi();
|
||||
public: // actually protected
|
||||
virtual void engineSetSeed(JArray< jbyte > *) = 0;
|
||||
virtual void engineNextBytes(JArray< jbyte > *) = 0;
|
||||
virtual JArray< jbyte > * engineGenerateSeed(jint) = 0;
|
||||
private:
|
||||
static const jlong serialVersionUID = -2991854161009191830LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_SecureRandomSpi__
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Security__
|
||||
#define __java_security_Security__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Provider;
|
||||
class Security;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Security : public ::java::lang::Object
|
||||
{
|
||||
|
||||
Security();
|
||||
static jboolean loadProviders(::java::lang::String *, ::java::lang::String *);
|
||||
public:
|
||||
static ::java::lang::String * getAlgorithmProperty(::java::lang::String *, ::java::lang::String *);
|
||||
static jint insertProviderAt(::java::security::Provider *, jint);
|
||||
static jint addProvider(::java::security::Provider *);
|
||||
static void removeProvider(::java::lang::String *);
|
||||
static JArray< ::java::security::Provider * > * getProviders();
|
||||
static ::java::security::Provider * getProvider(::java::lang::String *);
|
||||
static ::java::lang::String * getProperty(::java::lang::String *);
|
||||
static void setProperty(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::util::Set * getAlgorithms(::java::lang::String *);
|
||||
static JArray< ::java::security::Provider * > * getProviders(::java::lang::String *);
|
||||
static JArray< ::java::security::Provider * > * getProviders(::java::util::Map *);
|
||||
private:
|
||||
static void selectProviders(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::util::LinkedHashSet *, ::java::util::LinkedHashSet *);
|
||||
static jboolean provides(::java::security::Provider *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::lang::String * ALG_ALIAS;
|
||||
static ::java::util::Vector * providers;
|
||||
static ::java::util::Properties * secprops;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Security__
|
||||
@@ -1,714 +0,0 @@
|
||||
/* Security.java --- Java base security class implementation
|
||||
Copyright (C) 1999, 2001, 2002, 2003, 2004, 2005, 2006
|
||||
Free Software Foundation, Inc.
|
||||
|
||||
This file is 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, 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; see the file COPYING. If not, write to the
|
||||
Free Software Foundation, Inc., 51 Franklin Street, 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 java.security;
|
||||
|
||||
import gnu.classpath.SystemProperties;
|
||||
|
||||
import gnu.classpath.Configuration;
|
||||
// GCJ LOCAL - We don't have VMStackWalker yet.
|
||||
// import gnu.classpath.VMStackWalker;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
import java.util.Collections;
|
||||
import java.util.Enumeration;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
import java.util.Vector;
|
||||
|
||||
/**
|
||||
* This class centralizes all security properties and common security methods.
|
||||
* One of its primary uses is to manage security providers.
|
||||
*
|
||||
* @author Mark Benvenuto (ivymccough@worldnet.att.net)
|
||||
*/
|
||||
public final class Security
|
||||
{
|
||||
private static final String ALG_ALIAS = "Alg.Alias.";
|
||||
|
||||
private static Vector providers = new Vector();
|
||||
private static Properties secprops = new Properties();
|
||||
|
||||
static
|
||||
{
|
||||
String base = SystemProperties.getProperty("gnu.classpath.home.url");
|
||||
String vendor = SystemProperties.getProperty("gnu.classpath.vm.shortname");
|
||||
|
||||
// Try VM specific security file
|
||||
boolean loaded = loadProviders (base, vendor);
|
||||
|
||||
// Append classpath standard provider if possible
|
||||
if (!loadProviders (base, "classpath")
|
||||
&& !loaded
|
||||
&& providers.size() == 0)
|
||||
{
|
||||
if (Configuration.DEBUG)
|
||||
{
|
||||
/* No providers found and both security files failed to
|
||||
* load properly. Give a warning in case of DEBUG is
|
||||
* enabled. Could be done with java.util.logging later.
|
||||
*/
|
||||
System.err.println
|
||||
("WARNING: could not properly read security provider files:");
|
||||
System.err.println
|
||||
(" " + base + "/security/" + vendor
|
||||
+ ".security");
|
||||
System.err.println
|
||||
(" " + base + "/security/" + "classpath"
|
||||
+ ".security");
|
||||
System.err.println
|
||||
(" Falling back to standard GNU security provider");
|
||||
}
|
||||
// Note that this matches our classpath.security file.
|
||||
providers.addElement (new gnu.java.security.provider.Gnu());
|
||||
providers.addElement(new gnu.javax.crypto.jce.GnuCrypto());
|
||||
providers.addElement(new gnu.javax.crypto.jce.GnuSasl());
|
||||
providers.addElement(new gnu.javax.net.ssl.provider.Jessie());
|
||||
providers.addElement(new gnu.javax.security.auth.callback.GnuCallbacks());
|
||||
}
|
||||
}
|
||||
// This class can't be instantiated.
|
||||
private Security()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Tries to load the vender specific security providers from the given base
|
||||
* URL. Returns true if the resource could be read and completely parsed
|
||||
* successfully, false otherwise.
|
||||
*/
|
||||
private static boolean loadProviders(String baseUrl, String vendor)
|
||||
{
|
||||
if (baseUrl == null || vendor == null)
|
||||
return false;
|
||||
|
||||
boolean result = true;
|
||||
String secfilestr = baseUrl + "/security/" + vendor + ".security";
|
||||
try
|
||||
{
|
||||
InputStream fin = new URL(secfilestr).openStream();
|
||||
secprops.load(fin);
|
||||
|
||||
int i = 1;
|
||||
String name;
|
||||
while ((name = secprops.getProperty("security.provider." + i)) != null)
|
||||
{
|
||||
Exception exception = null;
|
||||
try
|
||||
{
|
||||
ClassLoader sys = ClassLoader.getSystemClassLoader();
|
||||
providers.addElement(Class.forName(name, true, sys).newInstance());
|
||||
}
|
||||
catch (ClassNotFoundException x)
|
||||
{
|
||||
exception = x;
|
||||
}
|
||||
catch (InstantiationException x)
|
||||
{
|
||||
exception = x;
|
||||
}
|
||||
catch (IllegalAccessException x)
|
||||
{
|
||||
exception = x;
|
||||
}
|
||||
|
||||
if (exception != null)
|
||||
{
|
||||
System.err.println ("WARNING: Error loading security provider "
|
||||
+ name + ": " + exception);
|
||||
result = false;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
catch (IOException ignored)
|
||||
{
|
||||
result = false;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated to a designated property name for a given
|
||||
* algorithm.
|
||||
*
|
||||
* @param algName
|
||||
* the algorithm name.
|
||||
* @param propName
|
||||
* the name of the property to return.
|
||||
* @return the value of the specified property or <code>null</code> if none
|
||||
* found.
|
||||
* @deprecated Use the provider-based and algorithm-independent
|
||||
* {@link AlgorithmParameters} and {@link KeyFactory} engine
|
||||
* classes instead.
|
||||
*/
|
||||
public static String getAlgorithmProperty(String algName, String propName)
|
||||
{
|
||||
if (algName == null || propName == null)
|
||||
return null;
|
||||
|
||||
String property = String.valueOf(propName) + "." + String.valueOf(algName);
|
||||
Provider p;
|
||||
for (Iterator i = providers.iterator(); i.hasNext(); )
|
||||
{
|
||||
p = (Provider) i.next();
|
||||
for (Iterator j = p.keySet().iterator(); j.hasNext(); )
|
||||
{
|
||||
String key = (String) j.next();
|
||||
if (key.equalsIgnoreCase(property))
|
||||
return p.getProperty(key);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Inserts a new designated {@link Provider} at a designated (1-based)
|
||||
* position in the current list of installed {@link Provider}s,
|
||||
*
|
||||
* @param provider
|
||||
* the new {@link Provider} to add.
|
||||
* @param position
|
||||
* the position (starting from 1) of where to install
|
||||
* <code>provider</code>.
|
||||
* @return the actual position, in the list of installed Providers. Returns
|
||||
* <code>-1</code> if <code>provider</code> was laready in the
|
||||
* list. The actual position may be different than the desired
|
||||
* <code>position</code>.
|
||||
* @throws SecurityException
|
||||
* if a {@link SecurityManager} is installed and it disallows this
|
||||
* operation.
|
||||
* @see #getProvider(String)
|
||||
* @see #removeProvider(String)
|
||||
* @see SecurityPermission
|
||||
*/
|
||||
public static int insertProviderAt(Provider provider, int position)
|
||||
{
|
||||
SecurityManager sm = System.getSecurityManager();
|
||||
if (sm != null)
|
||||
sm.checkSecurityAccess("insertProvider." + provider.getName());
|
||||
|
||||
position--;
|
||||
int max = providers.size ();
|
||||
for (int i = 0; i < max; i++)
|
||||
{
|
||||
if (((Provider) providers.elementAt(i)).getName().equals(provider.getName()))
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (position < 0)
|
||||
position = 0;
|
||||
if (position > max)
|
||||
position = max;
|
||||
|
||||
providers.insertElementAt(provider, position);
|
||||
|
||||
return position + 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Appends the designated new {@link Provider} to the current list of
|
||||
* installed {@link Provider}s.
|
||||
*
|
||||
* @param provider
|
||||
* the new {@link Provider} to append.
|
||||
* @return the position (starting from 1) of <code>provider</code> in the
|
||||
* current list of {@link Provider}s, or <code>-1</code> if
|
||||
* <code>provider</code> was already there.
|
||||
* @throws SecurityException
|
||||
* if a {@link SecurityManager} is installed and it disallows this
|
||||
* operation.
|
||||
* @see #getProvider(String)
|
||||
* @see #removeProvider(String)
|
||||
* @see SecurityPermission
|
||||
*/
|
||||
public static int addProvider(Provider provider)
|
||||
{
|
||||
return insertProviderAt (provider, providers.size () + 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes an already installed {@link Provider}, given its name, from the
|
||||
* current list of installed {@link Provider}s.
|
||||
*
|
||||
* @param name
|
||||
* the name of an already installed {@link Provider} to remove.
|
||||
* @throws SecurityException
|
||||
* if a {@link SecurityManager} is installed and it disallows this
|
||||
* operation.
|
||||
* @see #getProvider(String)
|
||||
* @see #addProvider(Provider)
|
||||
*/
|
||||
public static void removeProvider(String name)
|
||||
{
|
||||
SecurityManager sm = System.getSecurityManager();
|
||||
if (sm != null)
|
||||
sm.checkSecurityAccess("removeProvider." + name);
|
||||
|
||||
int max = providers.size ();
|
||||
for (int i = 0; i < max; i++)
|
||||
{
|
||||
if (((Provider) providers.elementAt(i)).getName().equals(name))
|
||||
{
|
||||
providers.remove(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current list of installed {@link Provider}s as an array
|
||||
* ordered according to their installation preference order.
|
||||
*
|
||||
* @return an array of all the installed providers.
|
||||
*/
|
||||
public static Provider[] getProviders()
|
||||
{
|
||||
Provider[] array = new Provider[providers.size ()];
|
||||
providers.copyInto (array);
|
||||
return array;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an already installed {@link Provider} given its name.
|
||||
*
|
||||
* @param name
|
||||
* the name of an already installed {@link Provider}.
|
||||
* @return the {@link Provider} known by <code>name</code>. Returns
|
||||
* <code>null</code> if the current list of {@link Provider}s does
|
||||
* not include one named <code>name</code>.
|
||||
* @see #removeProvider(String)
|
||||
* @see #addProvider(Provider)
|
||||
*/
|
||||
public static Provider getProvider(String name)
|
||||
{
|
||||
if (name == null)
|
||||
return null;
|
||||
else
|
||||
{
|
||||
name = name.trim();
|
||||
if (name.length() == 0)
|
||||
return null;
|
||||
}
|
||||
Provider p;
|
||||
int max = providers.size ();
|
||||
for (int i = 0; i < max; i++)
|
||||
{
|
||||
p = (Provider) providers.elementAt(i);
|
||||
if (p.getName().equals(name))
|
||||
return p;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value associated with a Security propery.
|
||||
*
|
||||
* @param key
|
||||
* the key of the property to fetch.
|
||||
* @return the value of the Security property associated with
|
||||
* <code>key</code>. Returns <code>null</code> if no such property
|
||||
* was found.
|
||||
* @throws SecurityException
|
||||
* if a {@link SecurityManager} is installed and it disallows this
|
||||
* operation.
|
||||
* @see #setProperty(String, String)
|
||||
* @see SecurityPermission
|
||||
*/
|
||||
public static String getProperty(String key)
|
||||
{
|
||||
// GCJ LOCAL - We don't have VMStackWalker yet.
|
||||
// XXX To prevent infinite recursion when the SecurityManager calls us,
|
||||
// don't do a security check if the caller is trusted (by virtue of having
|
||||
// been loaded by the bootstrap class loader).
|
||||
SecurityManager sm = System.getSecurityManager();
|
||||
// if (sm != null && VMStackWalker.getCallingClassLoader() != null)
|
||||
if (sm != null)
|
||||
sm.checkSecurityAccess("getProperty." + key);
|
||||
|
||||
return secprops.getProperty(key);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets or changes a designated Security property to a designated value.
|
||||
*
|
||||
* @param key
|
||||
* the name of the property to set.
|
||||
* @param datum
|
||||
* the new value of the property.
|
||||
* @throws SecurityException
|
||||
* if a {@link SecurityManager} is installed and it disallows this
|
||||
* operation.
|
||||
* @see #getProperty(String)
|
||||
* @see SecurityPermission
|
||||
*/
|
||||
public static void setProperty(String key, String datum)
|
||||
{
|
||||
SecurityManager sm = System.getSecurityManager();
|
||||
if (sm != null)
|
||||
sm.checkSecurityAccess("setProperty." + key);
|
||||
|
||||
if (datum == null)
|
||||
secprops.remove(key);
|
||||
else
|
||||
secprops.put(key, datum);
|
||||
}
|
||||
|
||||
/**
|
||||
* For a given <i>service</i> (e.g. Signature, MessageDigest, etc...) this
|
||||
* method returns the {@link Set} of all available algorithm names (instances
|
||||
* of {@link String}, from all currently installed {@link Provider}s.
|
||||
*
|
||||
* @param serviceName
|
||||
* the case-insensitive name of a service (e.g. Signature,
|
||||
* MessageDigest, etc).
|
||||
* @return a {@link Set} of {@link String}s containing the names of all
|
||||
* algorithm names provided by all of the currently installed
|
||||
* {@link Provider}s.
|
||||
* @since 1.4
|
||||
*/
|
||||
public static Set getAlgorithms(String serviceName)
|
||||
{
|
||||
HashSet result = new HashSet();
|
||||
if (serviceName == null || serviceName.length() == 0)
|
||||
return result;
|
||||
|
||||
serviceName = serviceName.trim();
|
||||
if (serviceName.length() == 0)
|
||||
return result;
|
||||
|
||||
serviceName = serviceName.toUpperCase()+".";
|
||||
Provider[] providers = getProviders();
|
||||
int ndx;
|
||||
for (int i = 0; i < providers.length; i++)
|
||||
for (Enumeration e = providers[i].propertyNames(); e.hasMoreElements(); )
|
||||
{
|
||||
String service = ((String) e.nextElement()).trim();
|
||||
if (service.toUpperCase().startsWith(serviceName))
|
||||
{
|
||||
service = service.substring(serviceName.length()).trim();
|
||||
ndx = service.indexOf(' '); // get rid of attributes
|
||||
if (ndx != -1)
|
||||
service = service.substring(0, ndx);
|
||||
result.add(service);
|
||||
}
|
||||
}
|
||||
return Collections.unmodifiableSet(result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of currently installed {@link Provider}s, ordered
|
||||
* according to their installation preference order, which satisfy a given
|
||||
* <i>selection</i> criterion.
|
||||
*
|
||||
* <p>This implementation recognizes a <i>selection</i> criterion written in
|
||||
* one of two following forms:</p>
|
||||
*
|
||||
* <ul>
|
||||
* <li><crypto_service>.<algorithm_or_type>: Where
|
||||
* <i>crypto_service</i> is a case-insensitive string, similar to what has
|
||||
* been described in the {@link #getAlgorithms(String)} method, and
|
||||
* <i>algorithm_or_type</i> is a known case-insensitive name of an
|
||||
* Algorithm, or one of its aliases.
|
||||
*
|
||||
* <p>For example, "CertificateFactory.X.509" would return all the installed
|
||||
* {@link Provider}s which provide a <i>CertificateFactory</i>
|
||||
* implementation of <i>X.509</i>.</p></li>
|
||||
*
|
||||
* <li><crypto_service>.<algorithm_or_type> <attribute_name>:<value>:
|
||||
* Where <i>crypto_service</i> is a case-insensitive string, similar to what
|
||||
* has been described in the {@link #getAlgorithms(String)} method,
|
||||
* <i>algorithm_or_type</i> is a case-insensitive known name of an Algorithm
|
||||
* or one of its aliases, <i>attribute_name</i> is a case-insensitive
|
||||
* property name with no whitespace characters, and no dots, in-between, and
|
||||
* <i>value</i> is a {@link String} with no whitespace characters in-between.
|
||||
*
|
||||
* <p>For example, "Signature.Sha1WithDSS KeySize:1024" would return all the
|
||||
* installed {@link Provider}s which declared their ability to provide
|
||||
* <i>Signature</i> services, using the <i>Sha1WithDSS</i> algorithm with
|
||||
* key sizes of <i>1024</i>.</p></li>
|
||||
* </ul>
|
||||
*
|
||||
* @param filter
|
||||
* the <i>selection</i> criterion for selecting among the installed
|
||||
* {@link Provider}s.
|
||||
* @return all the installed {@link Provider}s which satisfy the <i>selection</i>
|
||||
* criterion. Returns <code>null</code> if no installed
|
||||
* {@link Provider}s were found which satisfy the <i>selection</i>
|
||||
* criterion. Returns ALL installed {@link Provider}s if
|
||||
* <code>filter</code> is <code>null</code> or is an empty string.
|
||||
* @throws InvalidParameterException
|
||||
* if an exception occurs while parsing the <code>filter</code>.
|
||||
* @see #getProviders(Map)
|
||||
*/
|
||||
public static Provider[] getProviders(String filter)
|
||||
{
|
||||
if (providers == null || providers.isEmpty())
|
||||
return null;
|
||||
|
||||
if (filter == null || filter.length() == 0)
|
||||
return getProviders();
|
||||
|
||||
HashMap map = new HashMap(1);
|
||||
int i = filter.indexOf(':');
|
||||
if (i == -1) // <service>.<algorithm>
|
||||
map.put(filter, "");
|
||||
else // <service>.<algorithm> <attribute>:<value>
|
||||
map.put(filter.substring(0, i), filter.substring(i+1));
|
||||
|
||||
return getProviders(map);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of currently installed {@link Provider}s which satisfy a
|
||||
* set of <i>selection</i> criteria.
|
||||
*
|
||||
* <p>The <i>selection</i> criteria are defined in a {@link Map} where each
|
||||
* element specifies a <i>selection</i> querry. The <i>Keys</i> in this
|
||||
* {@link Map} must be in one of the two following forms:</p>
|
||||
*
|
||||
* <ul>
|
||||
* <li><crypto_service>.<algorithm_or_type>: Where
|
||||
* <i>crypto_service</i> is a case-insensitive string, similar to what has
|
||||
* been described in the {@link #getAlgorithms(String)} method, and
|
||||
* <i>algorithm_or_type</i> is a case-insensitive known name of an
|
||||
* Algorithm, or one of its aliases. The <i>value</i> of the entry in the
|
||||
* {@link Map} for such a <i>Key</i> MUST be the empty string.
|
||||
* {@link Provider}s which provide an implementation for the designated
|
||||
* <i>service algorithm</i> are included in the result.</li>
|
||||
*
|
||||
* <li><crypto_service>.<algorithm_or_type> <attribute_name>:
|
||||
* Where <i>crypto_service</i> is a case-insensitive string, similar to what
|
||||
* has been described in the {@link #getAlgorithms(String)} method,
|
||||
* <i>algorithm_or_type</i> is a case-insensitive known name of an Algorithm
|
||||
* or one of its aliases, and <i>attribute_name</i> is a case-insensitive
|
||||
* property name with no whitespace characters, and no dots, in-between. The
|
||||
* <i>value</i> of the entry in this {@link Map} for such a <i>Key</i> MUST
|
||||
* NOT be <code>null</code> or an empty string. {@link Provider}s which
|
||||
* declare the designated <i>attribute_name</i> and <i>value</i> for the
|
||||
* designated <i>service algorithm</i> are included in the result.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param filter
|
||||
* a {@link Map} of <i>selection querries</i>.
|
||||
* @return all currently installed {@link Provider}s which satisfy ALL the
|
||||
* <i>selection</i> criteria defined in <code>filter</code>.
|
||||
* Returns ALL installed {@link Provider}s if <code>filter</code>
|
||||
* is <code>null</code> or empty.
|
||||
* @throws InvalidParameterException
|
||||
* if an exception is encountered while parsing the syntax of the
|
||||
* {@link Map}'s <i>keys</i>.
|
||||
* @see #getProviders(String)
|
||||
*/
|
||||
public static Provider[] getProviders(Map filter)
|
||||
{
|
||||
if (providers == null || providers.isEmpty())
|
||||
return null;
|
||||
|
||||
if (filter == null)
|
||||
return getProviders();
|
||||
|
||||
Set querries = filter.keySet();
|
||||
if (querries == null || querries.isEmpty())
|
||||
return getProviders();
|
||||
|
||||
LinkedHashSet result = new LinkedHashSet(providers); // assume all
|
||||
int dot, ws;
|
||||
String querry, service, algorithm, attribute, value;
|
||||
LinkedHashSet serviceProviders = new LinkedHashSet(); // preserve insertion order
|
||||
for (Iterator i = querries.iterator(); i.hasNext(); )
|
||||
{
|
||||
querry = (String) i.next();
|
||||
if (querry == null) // all providers
|
||||
continue;
|
||||
|
||||
querry = querry.trim();
|
||||
if (querry.length() == 0) // all providers
|
||||
continue;
|
||||
|
||||
dot = querry.indexOf('.');
|
||||
if (dot == -1) // syntax error
|
||||
throw new InvalidParameterException(
|
||||
"missing dot in '" + String.valueOf(querry)+"'");
|
||||
|
||||
value = (String) filter.get(querry);
|
||||
// deconstruct querry into [service, algorithm, attribute]
|
||||
if (value == null || value.trim().length() == 0) // <service>.<algorithm>
|
||||
{
|
||||
value = null;
|
||||
attribute = null;
|
||||
service = querry.substring(0, dot).trim();
|
||||
algorithm = querry.substring(dot+1).trim();
|
||||
}
|
||||
else // <service>.<algorithm> <attribute>
|
||||
{
|
||||
ws = querry.indexOf(' ');
|
||||
if (ws == -1)
|
||||
throw new InvalidParameterException(
|
||||
"value (" + String.valueOf(value) +
|
||||
") is not empty, but querry (" + String.valueOf(querry) +
|
||||
") is missing at least one space character");
|
||||
value = value.trim();
|
||||
attribute = querry.substring(ws+1).trim();
|
||||
// was the dot in the attribute?
|
||||
if (attribute.indexOf('.') != -1)
|
||||
throw new InvalidParameterException(
|
||||
"attribute_name (" + String.valueOf(attribute) +
|
||||
") in querry (" + String.valueOf(querry) + ") contains a dot");
|
||||
|
||||
querry = querry.substring(0, ws).trim();
|
||||
service = querry.substring(0, dot).trim();
|
||||
algorithm = querry.substring(dot+1).trim();
|
||||
}
|
||||
|
||||
// service and algorithm must not be empty
|
||||
if (service.length() == 0)
|
||||
throw new InvalidParameterException(
|
||||
"<crypto_service> in querry (" + String.valueOf(querry) +
|
||||
") is empty");
|
||||
|
||||
if (algorithm.length() == 0)
|
||||
throw new InvalidParameterException(
|
||||
"<algorithm_or_type> in querry (" + String.valueOf(querry) +
|
||||
") is empty");
|
||||
|
||||
selectProviders(service, algorithm, attribute, value, result, serviceProviders);
|
||||
result.retainAll(serviceProviders); // eval next retaining found providers
|
||||
if (result.isEmpty()) // no point continuing
|
||||
break;
|
||||
}
|
||||
|
||||
if (result.isEmpty())
|
||||
return null;
|
||||
|
||||
return (Provider[]) result.toArray(new Provider[result.size()]);
|
||||
}
|
||||
|
||||
private static void selectProviders(String svc, String algo, String attr,
|
||||
String val, LinkedHashSet providerSet,
|
||||
LinkedHashSet result)
|
||||
{
|
||||
result.clear(); // ensure we start with an empty result set
|
||||
for (Iterator i = providerSet.iterator(); i.hasNext(); )
|
||||
{
|
||||
Provider p = (Provider) i.next();
|
||||
if (provides(p, svc, algo, attr, val))
|
||||
result.add(p);
|
||||
}
|
||||
}
|
||||
|
||||
private static boolean provides(Provider p, String svc, String algo,
|
||||
String attr, String val)
|
||||
{
|
||||
Iterator it;
|
||||
String serviceDotAlgorithm = null;
|
||||
String key = null;
|
||||
String realVal;
|
||||
boolean found = false;
|
||||
// if <svc>.<algo> <attr> is in the set then so is <svc>.<algo>
|
||||
// but it may be stored under an alias <algo>. resolve
|
||||
outer: for (int r = 0; r < 3; r++) // guard against circularity
|
||||
{
|
||||
serviceDotAlgorithm = (svc+"."+String.valueOf(algo)).trim();
|
||||
for (it = p.keySet().iterator(); it.hasNext(); )
|
||||
{
|
||||
key = (String) it.next();
|
||||
if (key.equalsIgnoreCase(serviceDotAlgorithm)) // eureka
|
||||
{
|
||||
found = true;
|
||||
break outer;
|
||||
}
|
||||
// it may be there but as an alias
|
||||
if (key.equalsIgnoreCase(ALG_ALIAS + serviceDotAlgorithm))
|
||||
{
|
||||
algo = p.getProperty(key);
|
||||
continue outer;
|
||||
}
|
||||
// else continue inner
|
||||
}
|
||||
}
|
||||
|
||||
if (!found)
|
||||
return false;
|
||||
|
||||
// found a candidate for the querry. do we have an attr to match?
|
||||
if (val == null) // <service>.<algorithm> querry
|
||||
return true;
|
||||
|
||||
// <service>.<algorithm> <attribute>; find the key entry that match
|
||||
String realAttr;
|
||||
int limit = serviceDotAlgorithm.length() + 1;
|
||||
for (it = p.keySet().iterator(); it.hasNext(); )
|
||||
{
|
||||
key = (String) it.next();
|
||||
if (key.length() <= limit)
|
||||
continue;
|
||||
|
||||
if (key.substring(0, limit).equalsIgnoreCase(serviceDotAlgorithm+" "))
|
||||
{
|
||||
realAttr = key.substring(limit).trim();
|
||||
if (! realAttr.equalsIgnoreCase(attr))
|
||||
continue;
|
||||
|
||||
// eveything matches so far. do the value
|
||||
realVal = p.getProperty(key);
|
||||
if (realVal == null)
|
||||
return false;
|
||||
|
||||
realVal = realVal.trim();
|
||||
// is it a string value?
|
||||
if (val.equalsIgnoreCase(realVal))
|
||||
return true;
|
||||
|
||||
// assume value is a number. cehck for greater-than-or-equal
|
||||
return (new Integer(val).intValue() >= new Integer(realVal).intValue());
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_SecurityPermission__
|
||||
#define __java_security_SecurityPermission__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/BasicPermission.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class SecurityPermission;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::SecurityPermission : public ::java::security::BasicPermission
|
||||
{
|
||||
|
||||
public:
|
||||
SecurityPermission(::java::lang::String *);
|
||||
SecurityPermission(::java::lang::String *, ::java::lang::String *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 5236109936224050470LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_SecurityPermission__
|
||||
@@ -0,0 +1,84 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Signature__
|
||||
#define __java_security_Signature__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/SignatureSpi.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace nio
|
||||
{
|
||||
class ByteBuffer;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class AlgorithmParameters;
|
||||
class PrivateKey;
|
||||
class Provider;
|
||||
class PublicKey;
|
||||
class SecureRandom;
|
||||
class Signature;
|
||||
namespace cert
|
||||
{
|
||||
class Certificate;
|
||||
}
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Signature : public ::java::security::SignatureSpi
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
Signature(::java::lang::String *);
|
||||
public:
|
||||
static ::java::security::Signature * getInstance(::java::lang::String *);
|
||||
static ::java::security::Signature * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::Signature * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual void initVerify(::java::security::PublicKey *);
|
||||
virtual void initVerify(::java::security::cert::Certificate *);
|
||||
virtual void initSign(::java::security::PrivateKey *);
|
||||
virtual void initSign(::java::security::PrivateKey *, ::java::security::SecureRandom *);
|
||||
virtual JArray< jbyte > * sign();
|
||||
virtual jint sign(JArray< jbyte > *, jint, jint);
|
||||
virtual jboolean verify(JArray< jbyte > *);
|
||||
virtual jboolean verify(JArray< jbyte > *, jint, jint);
|
||||
virtual void update(jbyte);
|
||||
virtual void update(JArray< jbyte > *);
|
||||
virtual void update(JArray< jbyte > *, jint, jint);
|
||||
virtual void update(::java::nio::ByteBuffer *);
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
virtual ::java::lang::String * toString();
|
||||
virtual void setParameter(::java::lang::String *, ::java::lang::Object *);
|
||||
virtual void setParameter(::java::security::spec::AlgorithmParameterSpec *);
|
||||
virtual ::java::security::AlgorithmParameters * getParameters();
|
||||
virtual ::java::lang::Object * getParameter(::java::lang::String *);
|
||||
virtual ::java::lang::Object * clone();
|
||||
private:
|
||||
static ::java::lang::String * SIGNATURE;
|
||||
public: // actually protected
|
||||
static const jint UNINITIALIZED = 0;
|
||||
static const jint SIGN = 2;
|
||||
static const jint VERIFY = 3;
|
||||
jint __attribute__((aligned(__alignof__( ::java::security::SignatureSpi)))) state;
|
||||
private:
|
||||
::java::lang::String * algorithm;
|
||||
public: // actually package-private
|
||||
::java::security::Provider * provider;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Signature__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_SignatureException__
|
||||
#define __java_security_SignatureException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class SignatureException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::SignatureException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
SignatureException();
|
||||
SignatureException(::java::lang::String *);
|
||||
SignatureException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
SignatureException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 7509989324975124438LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_SignatureException__
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_SignatureSpi__
|
||||
#define __java_security_SignatureSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace nio
|
||||
{
|
||||
class ByteBuffer;
|
||||
}
|
||||
namespace security
|
||||
{
|
||||
class AlgorithmParameters;
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
class SecureRandom;
|
||||
class SignatureSpi;
|
||||
namespace spec
|
||||
{
|
||||
class AlgorithmParameterSpec;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::SignatureSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
SignatureSpi();
|
||||
public: // actually protected
|
||||
virtual void engineInitVerify(::java::security::PublicKey *) = 0;
|
||||
virtual void engineInitSign(::java::security::PrivateKey *) = 0;
|
||||
virtual void engineInitSign(::java::security::PrivateKey *, ::java::security::SecureRandom *);
|
||||
virtual void engineUpdate(jbyte) = 0;
|
||||
virtual void engineUpdate(JArray< jbyte > *, jint, jint) = 0;
|
||||
virtual void engineUpdate(::java::nio::ByteBuffer *);
|
||||
virtual JArray< jbyte > * engineSign() = 0;
|
||||
virtual jint engineSign(JArray< jbyte > *, jint, jint);
|
||||
virtual jboolean engineVerify(JArray< jbyte > *) = 0;
|
||||
virtual jboolean engineVerify(JArray< jbyte > *, jint, jint);
|
||||
virtual void engineSetParameter(::java::lang::String *, ::java::lang::Object *) = 0;
|
||||
virtual void engineSetParameter(::java::security::spec::AlgorithmParameterSpec *);
|
||||
virtual ::java::security::AlgorithmParameters * engineGetParameters();
|
||||
virtual ::java::lang::Object * engineGetParameter(::java::lang::String *) = 0;
|
||||
public:
|
||||
virtual ::java::lang::Object * clone();
|
||||
public: // actually protected
|
||||
::java::security::SecureRandom * __attribute__((aligned(__alignof__( ::java::lang::Object)))) appRandom;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_SignatureSpi__
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_SignedObject__
|
||||
#define __java_security_SignedObject__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class PrivateKey;
|
||||
class PublicKey;
|
||||
class Signature;
|
||||
class SignedObject;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::SignedObject : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
SignedObject(::java::io::Serializable *, ::java::security::PrivateKey *, ::java::security::Signature *);
|
||||
::java::lang::Object * getObject();
|
||||
JArray< jbyte > * getSignature();
|
||||
::java::lang::String * getAlgorithm();
|
||||
jboolean verify(::java::security::PublicKey *, ::java::security::Signature *);
|
||||
private:
|
||||
void readObject(::java::io::ObjectInputStream *);
|
||||
static const jlong serialVersionUID = 720502720485447167LL;
|
||||
JArray< jbyte > * __attribute__((aligned(__alignof__( ::java::lang::Object)))) content;
|
||||
JArray< jbyte > * signature;
|
||||
::java::lang::String * thealgorithm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_SignedObject__
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_Signer__
|
||||
#define __java_security_Signer__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/Identity.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class IdentityScope;
|
||||
class KeyPair;
|
||||
class PrivateKey;
|
||||
class Signer;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::Signer : public ::java::security::Identity
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
Signer();
|
||||
public:
|
||||
Signer(::java::lang::String *);
|
||||
Signer(::java::lang::String *, ::java::security::IdentityScope *);
|
||||
virtual ::java::security::PrivateKey * getPrivateKey();
|
||||
virtual void setKeyPair(::java::security::KeyPair *);
|
||||
virtual ::java::lang::String * toString();
|
||||
private:
|
||||
static const jlong serialVersionUID = -1763464102261361480LL;
|
||||
::java::security::PrivateKey * __attribute__((aligned(__alignof__( ::java::security::Identity)))) privateKey;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_Signer__
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_UnrecoverableKeyException__
|
||||
#define __java_security_UnrecoverableKeyException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class UnrecoverableKeyException;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::UnrecoverableKeyException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
UnrecoverableKeyException();
|
||||
UnrecoverableKeyException(::java::lang::String *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 7275063078190151277LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_UnrecoverableKeyException__
|
||||
@@ -0,0 +1,56 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_UnresolvedPermission__
|
||||
#define __java_security_UnresolvedPermission__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/Permission.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Permission;
|
||||
class PermissionCollection;
|
||||
class UnresolvedPermission;
|
||||
namespace cert
|
||||
{
|
||||
class Certificate;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::UnresolvedPermission : public ::java::security::Permission
|
||||
{
|
||||
|
||||
public:
|
||||
UnresolvedPermission(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, JArray< ::java::security::cert::Certificate * > *);
|
||||
jboolean implies(::java::security::Permission *);
|
||||
jboolean equals(::java::lang::Object *);
|
||||
jint hashCode();
|
||||
::java::lang::String * getActions();
|
||||
::java::lang::String * toString();
|
||||
::java::security::PermissionCollection * newPermissionCollection();
|
||||
::java::lang::String * getUnresolvedType();
|
||||
::java::lang::String * getUnresolvedName();
|
||||
::java::lang::String * getUnresolvedActions();
|
||||
JArray< ::java::security::cert::Certificate * > * getUnresolvedCerts();
|
||||
private:
|
||||
static const jlong serialVersionUID = -4821973115467008846LL;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::security::Permission)))) actions;
|
||||
JArray< ::java::security::cert::Certificate * > * certs;
|
||||
public: // actually package-private
|
||||
::java::lang::String * type;
|
||||
private:
|
||||
::java::lang::String * name;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_UnresolvedPermission__
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_UnresolvedPermissionCollection$1__
|
||||
#define __java_security_UnresolvedPermissionCollection$1__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class UnresolvedPermissionCollection;
|
||||
class UnresolvedPermissionCollection$1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::UnresolvedPermissionCollection$1 : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually package-private
|
||||
UnresolvedPermissionCollection$1(::java::security::UnresolvedPermissionCollection *);
|
||||
public:
|
||||
jboolean hasMoreElements();
|
||||
::java::lang::Object * nextElement();
|
||||
public: // actually package-private
|
||||
::java::util::Enumeration * __attribute__((aligned(__alignof__( ::java::lang::Object)))) main_enum;
|
||||
::java::util::Enumeration * sub_enum;
|
||||
::java::security::UnresolvedPermissionCollection * this$0;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_UnresolvedPermissionCollection$1__
|
||||
@@ -0,0 +1,39 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_UnresolvedPermissionCollection__
|
||||
#define __java_security_UnresolvedPermissionCollection__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/PermissionCollection.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Permission;
|
||||
class UnresolvedPermissionCollection;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::UnresolvedPermissionCollection : public ::java::security::PermissionCollection
|
||||
{
|
||||
|
||||
public: // actually package-private
|
||||
UnresolvedPermissionCollection();
|
||||
public:
|
||||
virtual void add(::java::security::Permission *);
|
||||
virtual jboolean implies(::java::security::Permission *);
|
||||
virtual ::java::util::Enumeration * elements();
|
||||
private:
|
||||
static const jlong serialVersionUID = -7176153071733132400LL;
|
||||
public: // actually package-private
|
||||
::java::util::Hashtable * __attribute__((aligned(__alignof__( ::java::security::PermissionCollection)))) permissions;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_UnresolvedPermissionCollection__
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_VMAccessControlState__
|
||||
#define __java_security_VMAccessControlState__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class VMAccessControlState;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::VMAccessControlState : public ::java::lang::Object
|
||||
{
|
||||
|
||||
VMAccessControlState();
|
||||
public: // actually package-private
|
||||
static ::java::security::VMAccessControlState * getThreadState();
|
||||
virtual jboolean isInGetContext();
|
||||
virtual void setInGetContext(jboolean);
|
||||
virtual ::java::util::LinkedList * getContexts();
|
||||
private:
|
||||
::java::util::LinkedList * __attribute__((aligned(__alignof__( ::java::lang::Object)))) contexts;
|
||||
jboolean inGetContext;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_VMAccessControlState__
|
||||
@@ -0,0 +1,41 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_VMAccessController__
|
||||
#define __java_security_VMAccessController__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class AccessControlContext;
|
||||
class VMAccessController;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::VMAccessController : public ::java::lang::Object
|
||||
{
|
||||
|
||||
static void debug(::java::lang::String *);
|
||||
VMAccessController();
|
||||
public: // actually package-private
|
||||
static void pushContext(::java::security::AccessControlContext *);
|
||||
static void popContext();
|
||||
static ::java::security::AccessControlContext * getContext();
|
||||
private:
|
||||
static JArray< ::java::lang::Object * > * getStack();
|
||||
static ::java::security::AccessControlContext * DEFAULT_CONTEXT;
|
||||
static jboolean DEBUG;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_VMAccessController__
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_VMSecureRandom$Spinner__
|
||||
#define __java_security_VMSecureRandom$Spinner__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class VMSecureRandom$Spinner;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::VMSecureRandom$Spinner : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually package-private
|
||||
VMSecureRandom$Spinner(jbyte);
|
||||
public:
|
||||
virtual void run();
|
||||
private:
|
||||
void stop();
|
||||
public: // actually package-private
|
||||
static void access$0(::java::security::VMSecureRandom$Spinner *);
|
||||
volatile jbyte __attribute__((aligned(__alignof__( ::java::lang::Object)))) value;
|
||||
volatile jboolean running;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_VMSecureRandom$Spinner__
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_VMSecureRandom__
|
||||
#define __java_security_VMSecureRandom__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class VMSecureRandom;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::VMSecureRandom : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually package-private
|
||||
VMSecureRandom();
|
||||
static jint generateSeed(JArray< jbyte > *, jint, jint);
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_VMSecureRandom__
|
||||
@@ -0,0 +1,45 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_Acl__
|
||||
#define __java_security_acl_Acl__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Principal;
|
||||
namespace acl
|
||||
{
|
||||
class Acl;
|
||||
class AclEntry;
|
||||
class Permission;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::Acl : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::String * getName() = 0;
|
||||
virtual void setName(::java::security::Principal *, ::java::lang::String *) = 0;
|
||||
virtual jboolean addEntry(::java::security::Principal *, ::java::security::acl::AclEntry *) = 0;
|
||||
virtual jboolean removeEntry(::java::security::Principal *, ::java::security::acl::AclEntry *) = 0;
|
||||
virtual ::java::util::Enumeration * entries() = 0;
|
||||
virtual jboolean checkPermission(::java::security::Principal *, ::java::security::acl::Permission *) = 0;
|
||||
virtual ::java::util::Enumeration * getPermissions(::java::security::Principal *) = 0;
|
||||
virtual ::java::lang::String * toString() = 0;
|
||||
virtual jboolean addOwner(::java::security::Principal *, ::java::security::Principal *) = 0;
|
||||
virtual jboolean deleteOwner(::java::security::Principal *, ::java::security::Principal *) = 0;
|
||||
virtual jboolean isOwner(::java::security::Principal *) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_acl_Acl__
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_AclEntry__
|
||||
#define __java_security_acl_AclEntry__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Principal;
|
||||
namespace acl
|
||||
{
|
||||
class AclEntry;
|
||||
class Permission;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::AclEntry : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::security::Principal * getPrincipal() = 0;
|
||||
virtual jboolean setPrincipal(::java::security::Principal *) = 0;
|
||||
virtual void setNegativePermissions() = 0;
|
||||
virtual jboolean isNegative() = 0;
|
||||
virtual jboolean addPermission(::java::security::acl::Permission *) = 0;
|
||||
virtual jboolean removePermission(::java::security::acl::Permission *) = 0;
|
||||
virtual jboolean checkPermission(::java::security::acl::Permission *) = 0;
|
||||
virtual ::java::util::Enumeration * permissions() = 0;
|
||||
virtual ::java::lang::String * toString() = 0;
|
||||
virtual ::java::lang::Object * clone() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_acl_AclEntry__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_AclNotFoundException__
|
||||
#define __java_security_acl_AclNotFoundException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Exception.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace acl
|
||||
{
|
||||
class AclNotFoundException;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::AclNotFoundException : public ::java::lang::Exception
|
||||
{
|
||||
|
||||
public:
|
||||
AclNotFoundException();
|
||||
private:
|
||||
static const jlong serialVersionUID = 5684295034092681791LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_acl_AclNotFoundException__
|
||||
@@ -0,0 +1,37 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_Group__
|
||||
#define __java_security_acl_Group__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Principal;
|
||||
namespace acl
|
||||
{
|
||||
class Group;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::Group : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual jboolean addMember(::java::security::Principal *) = 0;
|
||||
virtual jboolean removeMember(::java::security::Principal *) = 0;
|
||||
virtual jboolean isMember(::java::security::Principal *) = 0;
|
||||
virtual ::java::util::Enumeration * members() = 0;
|
||||
virtual ::java::lang::String * getName() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_acl_Group__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_LastOwnerException__
|
||||
#define __java_security_acl_LastOwnerException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Exception.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace acl
|
||||
{
|
||||
class LastOwnerException;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::LastOwnerException : public ::java::lang::Exception
|
||||
{
|
||||
|
||||
public:
|
||||
LastOwnerException();
|
||||
private:
|
||||
static const jlong serialVersionUID = -5141997548211140359LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_acl_LastOwnerException__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_NotOwnerException__
|
||||
#define __java_security_acl_NotOwnerException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Exception.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace acl
|
||||
{
|
||||
class NotOwnerException;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::NotOwnerException : public ::java::lang::Exception
|
||||
{
|
||||
|
||||
public:
|
||||
NotOwnerException();
|
||||
private:
|
||||
static const jlong serialVersionUID = -5555597911163362399LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_acl_NotOwnerException__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_Owner__
|
||||
#define __java_security_acl_Owner__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Principal;
|
||||
namespace acl
|
||||
{
|
||||
class Owner;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::Owner : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual jboolean addOwner(::java::security::Principal *, ::java::security::Principal *) = 0;
|
||||
virtual jboolean deleteOwner(::java::security::Principal *, ::java::security::Principal *) = 0;
|
||||
virtual jboolean isOwner(::java::security::Principal *) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_acl_Owner__
|
||||
@@ -0,0 +1,33 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_acl_Permission__
|
||||
#define __java_security_acl_Permission__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace acl
|
||||
{
|
||||
class Permission;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::acl::Permission : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual jboolean equals(::java::lang::Object *) = 0;
|
||||
virtual ::java::lang::String * toString() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_acl_Permission__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CRL__
|
||||
#define __java_security_cert_CRL__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CRL;
|
||||
class Certificate;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CRL : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
CRL(::java::lang::String *);
|
||||
public:
|
||||
virtual ::java::lang::String * getType();
|
||||
virtual ::java::lang::String * toString() = 0;
|
||||
virtual jboolean isRevoked(::java::security::cert::Certificate *) = 0;
|
||||
private:
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) type;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CRL__
|
||||
@@ -0,0 +1,38 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CRLException__
|
||||
#define __java_security_cert_CRLException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CRLException;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CRLException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
CRLException();
|
||||
CRLException(::java::lang::String *);
|
||||
CRLException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
CRLException(::java::lang::Throwable *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -6694728944094197147LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CRLException__
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CRLSelector__
|
||||
#define __java_security_cert_CRLSelector__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CRL;
|
||||
class CRLSelector;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CRLSelector : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::Object * clone() = 0;
|
||||
virtual jboolean match(::java::security::cert::CRL *) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_cert_CRLSelector__
|
||||
@@ -0,0 +1,40 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPath$CertPathRep__
|
||||
#define __java_security_cert_CertPath$CertPathRep__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPath$CertPathRep;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPath$CertPathRep : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
CertPath$CertPathRep(::java::lang::String *, JArray< jbyte > *);
|
||||
virtual ::java::lang::Object * readResolve();
|
||||
private:
|
||||
static const jlong serialVersionUID = 3015633072427920915LL;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) type;
|
||||
JArray< jbyte > * data;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPath$CertPathRep__
|
||||
@@ -0,0 +1,49 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPath__
|
||||
#define __java_security_cert_CertPath__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
#include <gcj/array.h>
|
||||
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPath;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPath : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
CertPath(::java::lang::String *);
|
||||
public:
|
||||
virtual ::java::lang::String * getType();
|
||||
virtual ::java::util::Iterator * getEncodings() = 0;
|
||||
virtual jboolean equals(::java::lang::Object *);
|
||||
virtual jint hashCode();
|
||||
virtual ::java::lang::String * toString();
|
||||
virtual JArray< jbyte > * getEncoded() = 0;
|
||||
virtual JArray< jbyte > * getEncoded(::java::lang::String *) = 0;
|
||||
virtual ::java::util::List * getCertificates() = 0;
|
||||
public: // actually protected
|
||||
virtual ::java::lang::Object * writeReplace();
|
||||
private:
|
||||
static const jlong serialVersionUID = 6068470306649138683LL;
|
||||
::java::lang::String * __attribute__((aligned(__alignof__( ::java::lang::Object)))) type;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPath__
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathBuilder__
|
||||
#define __java_security_cert_CertPathBuilder__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Provider;
|
||||
namespace cert
|
||||
{
|
||||
class CertPathBuilder;
|
||||
class CertPathBuilderResult;
|
||||
class CertPathBuilderSpi;
|
||||
class CertPathParameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathBuilder : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
CertPathBuilder(::java::security::cert::CertPathBuilderSpi *, ::java::security::Provider *, ::java::lang::String *);
|
||||
public:
|
||||
static ::java::lang::String * getDefaultType();
|
||||
static ::java::security::cert::CertPathBuilder * getInstance(::java::lang::String *);
|
||||
static ::java::security::cert::CertPathBuilder * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::cert::CertPathBuilder * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual ::java::security::cert::CertPathBuilderResult * build(::java::security::cert::CertPathParameters *);
|
||||
private:
|
||||
static ::java::lang::String * CERT_PATH_BUILDER;
|
||||
::java::security::cert::CertPathBuilderSpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) cpbSpi;
|
||||
::java::security::Provider * provider;
|
||||
::java::lang::String * algorithm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPathBuilder__
|
||||
@@ -0,0 +1,44 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathBuilderException__
|
||||
#define __java_security_cert_CertPathBuilderException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPathBuilderException;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathBuilderException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
CertPathBuilderException();
|
||||
CertPathBuilderException(::java::lang::String *);
|
||||
CertPathBuilderException(::java::lang::Throwable *);
|
||||
CertPathBuilderException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
virtual ::java::lang::String * getMessage();
|
||||
virtual ::java::lang::Throwable * getCause();
|
||||
virtual ::java::lang::String * toString();
|
||||
virtual void printStackTrace();
|
||||
virtual void printStackTrace(::java::io::PrintStream *);
|
||||
virtual void printStackTrace(::java::io::PrintWriter *);
|
||||
private:
|
||||
static const jlong serialVersionUID = 5316471420178794402LL;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPathBuilderException__
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathBuilderResult__
|
||||
#define __java_security_cert_CertPathBuilderResult__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPath;
|
||||
class CertPathBuilderResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathBuilderResult : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::Object * clone() = 0;
|
||||
virtual ::java::security::cert::CertPath * getCertPath() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_cert_CertPathBuilderResult__
|
||||
@@ -0,0 +1,35 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathBuilderSpi__
|
||||
#define __java_security_cert_CertPathBuilderSpi__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPathBuilderResult;
|
||||
class CertPathBuilderSpi;
|
||||
class CertPathParameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathBuilderSpi : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
CertPathBuilderSpi();
|
||||
virtual ::java::security::cert::CertPathBuilderResult * engineBuild(::java::security::cert::CertPathParameters *) = 0;
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPathBuilderSpi__
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathParameters__
|
||||
#define __java_security_cert_CertPathParameters__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPathParameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathParameters : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::Object * clone() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_cert_CertPathParameters__
|
||||
@@ -0,0 +1,34 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathValidator$1__
|
||||
#define __java_security_cert_CertPathValidator$1__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPathValidator$1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathValidator$1 : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually package-private
|
||||
CertPathValidator$1();
|
||||
public:
|
||||
::java::lang::Object * run();
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPathValidator$1__
|
||||
@@ -0,0 +1,51 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathValidator__
|
||||
#define __java_security_cert_CertPathValidator__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
class Provider;
|
||||
namespace cert
|
||||
{
|
||||
class CertPath;
|
||||
class CertPathParameters;
|
||||
class CertPathValidator;
|
||||
class CertPathValidatorResult;
|
||||
class CertPathValidatorSpi;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathValidator : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public: // actually protected
|
||||
CertPathValidator(::java::security::cert::CertPathValidatorSpi *, ::java::security::Provider *, ::java::lang::String *);
|
||||
public:
|
||||
static ::java::lang::String * getDefaultType();
|
||||
static ::java::security::cert::CertPathValidator * getInstance(::java::lang::String *);
|
||||
static ::java::security::cert::CertPathValidator * getInstance(::java::lang::String *, ::java::lang::String *);
|
||||
static ::java::security::cert::CertPathValidator * getInstance(::java::lang::String *, ::java::security::Provider *);
|
||||
virtual ::java::lang::String * getAlgorithm();
|
||||
virtual ::java::security::Provider * getProvider();
|
||||
virtual ::java::security::cert::CertPathValidatorResult * validate(::java::security::cert::CertPath *, ::java::security::cert::CertPathParameters *);
|
||||
private:
|
||||
static ::java::lang::String * CERT_PATH_VALIDATOR;
|
||||
::java::security::cert::CertPathValidatorSpi * __attribute__((aligned(__alignof__( ::java::lang::Object)))) validatorSpi;
|
||||
::java::security::Provider * provider;
|
||||
::java::lang::String * algorithm;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPathValidator__
|
||||
@@ -0,0 +1,50 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathValidatorException__
|
||||
#define __java_security_cert_CertPathValidatorException__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/security/GeneralSecurityException.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPath;
|
||||
class CertPathValidatorException;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathValidatorException : public ::java::security::GeneralSecurityException
|
||||
{
|
||||
|
||||
public:
|
||||
CertPathValidatorException();
|
||||
CertPathValidatorException(::java::lang::String *);
|
||||
CertPathValidatorException(::java::lang::Throwable *);
|
||||
CertPathValidatorException(::java::lang::String *, ::java::lang::Throwable *);
|
||||
CertPathValidatorException(::java::lang::String *, ::java::lang::Throwable *, ::java::security::cert::CertPath *, jint);
|
||||
virtual ::java::lang::String * getMessage();
|
||||
virtual ::java::security::cert::CertPath * getCertPath();
|
||||
virtual jint getIndex();
|
||||
virtual ::java::lang::Throwable * getCause();
|
||||
virtual ::java::lang::String * toString();
|
||||
virtual void printStackTrace();
|
||||
virtual void printStackTrace(::java::io::PrintStream *);
|
||||
virtual void printStackTrace(::java::io::PrintWriter *);
|
||||
private:
|
||||
static const jlong serialVersionUID = -3083180014971893139LL;
|
||||
jint __attribute__((aligned(__alignof__( ::java::security::GeneralSecurityException)))) index;
|
||||
::java::security::cert::CertPath * certPath;
|
||||
public:
|
||||
static ::java::lang::Class class$;
|
||||
};
|
||||
|
||||
#endif // __java_security_cert_CertPathValidatorException__
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
||||
|
||||
#ifndef __java_security_cert_CertPathValidatorResult__
|
||||
#define __java_security_cert_CertPathValidatorResult__
|
||||
|
||||
#pragma interface
|
||||
|
||||
#include <java/lang/Object.h>
|
||||
extern "Java"
|
||||
{
|
||||
namespace java
|
||||
{
|
||||
namespace security
|
||||
{
|
||||
namespace cert
|
||||
{
|
||||
class CertPathValidatorResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class java::security::cert::CertPathValidatorResult : public ::java::lang::Object
|
||||
{
|
||||
|
||||
public:
|
||||
virtual ::java::lang::Object * clone() = 0;
|
||||
static ::java::lang::Class class$;
|
||||
} __attribute__ ((java_interface));
|
||||
|
||||
#endif // __java_security_cert_CertPathValidatorResult__
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user