javacommons/security/src/utils/securityutils.h
changeset 79 2f468c1958d0
parent 21 2a9601315dfc
equal deleted inserted replaced
76:4ad59aaee882 79:2f468c1958d0
    93 {
    93 {
    94     char * domain_name;
    94     char * domain_name;
    95     char * domain_category;
    95     char * domain_category;
    96     char * jar_hash;
    96     char * jar_hash;
    97     char * root_hash;
    97     char * root_hash;
       
    98     char * root_id;
    98     int chain_index;
    99     int chain_index;
    99     int predefined_domain_category;
   100     int predefined_domain_category;
   100     CERT_DETAILS* signing_cert;
   101     CERT_DETAILS* signing_cert;
   101 } AUTH_CREDENTIALS;
   102 } AUTH_CREDENTIALS;
   102 
   103 
   118     static char * computeDigest(const char*);
   119     static char * computeDigest(const char*);
   119     static void throw_exception(JNIEnv*, const char *);
   120     static void throw_exception(JNIEnv*, const char *);
   120     static void getAuthInfo(JNIEnv*, jobjectArray, int, AUTH_INFO *);
   121     static void getAuthInfo(JNIEnv*, jobjectArray, int, AUTH_INFO *);
   121     static jobject getJNICertDetails(JNIEnv *, const CERT_DETAILS);
   122     static jobject getJNICertDetails(JNIEnv *, const CERT_DETAILS);
   122     static jobjectArray getJNIAuthCredentials(JNIEnv *, std::vector<AUTH_CREDENTIALS*>);
   123     static jobjectArray getJNIAuthCredentials(JNIEnv *, std::vector<AUTH_CREDENTIALS*>);
       
   124     static void computePublicKeyHash(X509 *, char *);
   123 private:
   125 private:
   124     static bool checkIMEI(const X509_EXTENSION *, const char *);
   126     static bool checkIMEI(const X509_EXTENSION *, const char *);
   125     static char * computeDigest1(const char*);
   127     static char * computeDigest1(const char*);
   126 };
   128 };
   127 
   129