jmethodID g_ThrowableGetCause;
jmethodID g_ThrowableGetMessage;
-// java/security/Key
-jclass g_KeyClass;
-jmethodID g_KeyGetAlgorithm;
-jmethodID g_KeyGetEncoded;
-
// java/security/SecureRandom
jclass g_randClass;
jmethodID g_randCtor;
jmethodID g_CertFactoryGenerateCertificates;
jmethodID g_CertFactoryGenerateCertPathFromList;
jmethodID g_CertFactoryGenerateCertPathFromStream;
-jmethodID g_CertFactoryGenerateCRL;
// java/security/cert/CertPath
jclass g_CertPathClass;
jmethodID g_PKIXBuilderParametersCtor;
jmethodID g_PKIXBuilderParametersAddCertStore;
jmethodID g_PKIXBuilderParametersAddCertPathChecker;
-jmethodID g_PKIXBuilderParametersSetCertPathCheckers;
jmethodID g_PKIXBuilderParametersSetDate;
jmethodID g_PKIXBuilderParametersSetRevocationEnabled;
jmethodID g_PKIXBuilderParametersSetTrustAnchors;
// java/security/cert/PKIXRevocationChecker$Option - only in API level 24+
jclass g_PKIXRevocationCheckerOptionClass;
-jfieldID g_PKIXRevocationCheckerOptionNoFallback;
jfieldID g_PKIXRevocationCheckerOptionOnlyEndEntity;
-jfieldID g_PKIXRevocationCheckerOptionPreferCrls;
-jfieldID g_PKIXRevocationCheckerOptionSoftFail;
// java/security/cert/TrustAnchor
jclass g_TrustAnchorClass;
// java/util/Date
jclass g_DateClass;
jmethodID g_DateCtor;
-jmethodID g_DateGetTime;
// java/util/Enumeration
jclass g_Enumeration;
jclass g_ListClass;
jmethodID g_ListGet;
-// java/util/Set
-jclass g_SetClass;
-jmethodID g_SetIterator;
-
// javax/net/ssl/SSLEngine
jclass g_SSLEngine;
jmethodID g_SSLEngineSetUseClientModeMethod;
// javax/net/ssl/TrustManager
jclass g_TrustManager;
-// javax/security/auth/x500/X500Principal
-jclass g_X500PrincipalClass;
-jmethodID g_X500PrincipalGetEncoded;
-jmethodID g_X500PrincipalHashCode;
-
// javax/crypto/KeyAgreement
jclass g_KeyAgreementClass;
jmethodID g_KeyAgreementGetInstance;
g_ThrowableGetCause = GetMethod(env, false, g_ThrowableClass, "getCause", "()Ljava/lang/Throwable;");
g_ThrowableGetMessage = GetMethod(env, false, g_ThrowableClass, "getMessage", "()Ljava/lang/String;");
- g_KeyClass = GetClassGRef(env, "java/security/Key");
- g_KeyGetAlgorithm = GetMethod(env, false, g_KeyClass, "getAlgorithm", "()Ljava/lang/String;");
- g_KeyGetEncoded = GetMethod(env, false, g_KeyClass, "getEncoded", "()[B");
-
g_randClass = GetClassGRef(env, "java/security/SecureRandom");
g_randCtor = GetMethod(env, false, g_randClass, "<init>", "()V");
g_randNextBytesMethod = GetMethod(env, false, g_randClass, "nextBytes", "([B)V");
g_CertFactoryGenerateCertificates = GetMethod(env, false, g_CertFactoryClass, "generateCertificates", "(Ljava/io/InputStream;)Ljava/util/Collection;");
g_CertFactoryGenerateCertPathFromList = GetMethod(env, false, g_CertFactoryClass, "generateCertPath", "(Ljava/util/List;)Ljava/security/cert/CertPath;");
g_CertFactoryGenerateCertPathFromStream = GetMethod(env, false, g_CertFactoryClass, "generateCertPath", "(Ljava/io/InputStream;Ljava/lang/String;)Ljava/security/cert/CertPath;");
- g_CertFactoryGenerateCRL = GetMethod(env, false, g_CertFactoryClass, "generateCRL", "(Ljava/io/InputStream;)Ljava/security/cert/CRL;");
g_CertPathClass = GetClassGRef(env, "java/security/cert/CertPath");
g_CertPathGetEncoded = GetMethod(env, false, g_CertPathClass, "getEncoded", "(Ljava/lang/String;)[B");
g_PKIXBuilderParametersCtor = GetMethod(env, false, g_PKIXBuilderParametersClass, "<init>", "(Ljava/security/KeyStore;Ljava/security/cert/CertSelector;)V");
g_PKIXBuilderParametersAddCertStore = GetMethod(env, false, g_PKIXBuilderParametersClass, "addCertStore", "(Ljava/security/cert/CertStore;)V");
g_PKIXBuilderParametersAddCertPathChecker = GetMethod(env, false, g_PKIXBuilderParametersClass, "addCertPathChecker", "(Ljava/security/cert/PKIXCertPathChecker;)V");
- g_PKIXBuilderParametersSetCertPathCheckers = GetMethod(env, false, g_PKIXBuilderParametersClass, "setCertPathCheckers", "(Ljava/util/List;)V");
g_PKIXBuilderParametersSetDate = GetMethod(env, false, g_PKIXBuilderParametersClass, "setDate", "(Ljava/util/Date;)V");
g_PKIXBuilderParametersSetRevocationEnabled = GetMethod(env, false, g_PKIXBuilderParametersClass, "setRevocationEnabled", "(Z)V");
g_PKIXBuilderParametersSetTrustAnchors = GetMethod(env, false, g_PKIXBuilderParametersClass, "setTrustAnchors", "(Ljava/util/Set;)V");
g_PKIXRevocationCheckerSetOptions = GetMethod(env, false, g_PKIXRevocationCheckerClass, "setOptions", "(Ljava/util/Set;)V");
g_PKIXRevocationCheckerOptionClass = GetClassGRef(env, "java/security/cert/PKIXRevocationChecker$Option");
- g_PKIXRevocationCheckerOptionNoFallback = GetField(env, true, g_PKIXRevocationCheckerOptionClass, "NO_FALLBACK", "Ljava/security/cert/PKIXRevocationChecker$Option;");
g_PKIXRevocationCheckerOptionOnlyEndEntity = GetField(env, true, g_PKIXRevocationCheckerOptionClass, "ONLY_END_ENTITY", "Ljava/security/cert/PKIXRevocationChecker$Option;");
- g_PKIXRevocationCheckerOptionPreferCrls = GetField(env, true, g_PKIXRevocationCheckerOptionClass, "PREFER_CRLS", "Ljava/security/cert/PKIXRevocationChecker$Option;");
- g_PKIXRevocationCheckerOptionSoftFail = GetField(env, true, g_PKIXRevocationCheckerOptionClass, "SOFT_FAIL", "Ljava/security/cert/PKIXRevocationChecker$Option;");
}
g_TrustAnchorClass = GetClassGRef(env, "java/security/cert/TrustAnchor");
g_DateClass = GetClassGRef(env, "java/util/Date");
g_DateCtor = GetMethod(env, false, g_DateClass, "<init>", "(J)V");
- g_DateGetTime = GetMethod(env, false, g_DateClass, "getTime", "()J");
g_Enumeration = GetClassGRef(env, "java/util/Enumeration");
g_EnumerationHasMoreElements = GetMethod(env, false, g_Enumeration, "hasMoreElements", "()Z");
g_ListClass = GetClassGRef(env, "java/util/List");
g_ListGet = GetMethod(env, false, g_ListClass, "get", "(I)Ljava/lang/Object;");
- g_SetClass = GetClassGRef(env, "java/util/Set");
- g_SetIterator = GetMethod(env, false, g_SetClass, "iterator", "()Ljava/util/Iterator;");
-
g_SSLEngine = GetClassGRef(env, "javax/net/ssl/SSLEngine");
g_SSLEngineSetUseClientModeMethod = GetMethod(env, false, g_SSLEngine, "setUseClientMode", "(Z)V");
g_SSLEngineGetSessionMethod = GetMethod(env, false, g_SSLEngine, "getSession", "()Ljavax/net/ssl/SSLSession;");
g_TrustManager = GetClassGRef(env, "javax/net/ssl/TrustManager");
- g_X500PrincipalClass = GetClassGRef(env, "javax/security/auth/x500/X500Principal");
- g_X500PrincipalGetEncoded = GetMethod(env, false, g_X500PrincipalClass, "getEncoded", "()[B");
- g_X500PrincipalHashCode = GetMethod(env, false, g_X500PrincipalClass, "hashCode", "()I");
-
g_KeyAgreementClass = GetClassGRef(env, "javax/crypto/KeyAgreement");
g_KeyAgreementGetInstance = GetMethod(env, true, g_KeyAgreementClass, "getInstance", "(Ljava/lang/String;)Ljavax/crypto/KeyAgreement;");
g_KeyAgreementInit = GetMethod(env, false, g_KeyAgreementClass, "init", "(Ljava/security/Key;)V");
extern jmethodID g_ThrowableGetCause;
extern jmethodID g_ThrowableGetMessage;
-// java/security/Key
-extern jclass g_KeyClass;
-extern jmethodID g_KeyGetAlgorithm;
-extern jmethodID g_KeyGetEncoded;
-
// java/security/SecureRandom
extern jclass g_randClass;
extern jmethodID g_randCtor;
extern jmethodID g_CertFactoryGenerateCertificates;
extern jmethodID g_CertFactoryGenerateCertPathFromList;
extern jmethodID g_CertFactoryGenerateCertPathFromStream;
-extern jmethodID g_CertFactoryGenerateCRL;
// java/security/cert/CertPath
extern jclass g_CertPathClass;
extern jmethodID g_PKIXBuilderParametersCtor;
extern jmethodID g_PKIXBuilderParametersAddCertStore;
extern jmethodID g_PKIXBuilderParametersAddCertPathChecker;
-extern jmethodID g_PKIXBuilderParametersSetCertPathCheckers;
extern jmethodID g_PKIXBuilderParametersSetDate;
extern jmethodID g_PKIXBuilderParametersSetRevocationEnabled;
extern jmethodID g_PKIXBuilderParametersSetTrustAnchors;
// java/security/cert/PKIXRevocationChecker$Option - only in API level 24+
extern jclass g_PKIXRevocationCheckerOptionClass;
-extern jfieldID g_PKIXRevocationCheckerOptionNoFallback;
extern jfieldID g_PKIXRevocationCheckerOptionOnlyEndEntity;
-extern jfieldID g_PKIXRevocationCheckerOptionPreferCrls;
-extern jfieldID g_PKIXRevocationCheckerOptionSoftFail;
// java/security/cert/TrustAnchor
extern jclass g_TrustAnchorClass;
// java/util/Date
extern jclass g_DateClass;
extern jmethodID g_DateCtor;
-extern jmethodID g_DateGetTime;
// java/util/Enumeration
extern jclass g_Enumeration;
extern jclass g_ListClass;
extern jmethodID g_ListGet;
-// java/util/Set
-extern jclass g_SetClass;
-extern jmethodID g_SetIterator;
-
// javax/net/ssl/SSLEngine
extern jclass g_SSLEngine;
extern jmethodID g_SSLEngineSetUseClientModeMethod;
// javax/net/ssl/TrustManager
extern jclass g_TrustManager;
-// javax/security/auth/x500/X500Principal
-extern jclass g_X500PrincipalClass;
-extern jmethodID g_X500PrincipalGetEncoded;
-extern jmethodID g_X500PrincipalHashCode;
-
// javax/crypto/KeyAgreement
extern jclass g_KeyAgreementClass;
extern jmethodID g_KeyAgreementGetInstance;