Class ConscryptUtil


  • public final class ConscryptUtil
    extends java.lang.Object
    Utility functions for Conscrypt.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isConscryptProvider​(java.security.Provider provider)  
      static java.security.Provider providerOrNull()  
      static java.security.Provider providerWithReflectionOrNull()
      Tries to get the Conscrypt provider using reflection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • providerOrNull

        @Nullable
        public static java.security.Provider providerOrNull()
      • providerWithReflectionOrNull

        @Nullable
        public static java.security.Provider providerWithReflectionOrNull()
        Tries to get the Conscrypt provider using reflection.

        Note that this will typically fail on Android because ProGuard renames all class and method names. However, on Android, Conscrypt is installed by default and so this code is not executed.

      • isConscryptProvider

        public static final boolean isConscryptProvider​(java.security.Provider provider)