Package io.grpc.internal
Class ConscryptLoader
- java.lang.Object
-
- io.grpc.internal.ConscryptLoader
-
public final class ConscryptLoader extends java.lang.Object
Utility to load dynamically Conscrypt when it is available.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.reflect.Method
IS_CONSCRYPT_METHOD
private static java.lang.reflect.Method
NEW_PROVIDER_METHOD
-
Constructor Summary
Constructors Constructor Description ConscryptLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isConscrypt(java.security.Provider provider)
Same asConscrypt.isConscrypt(Provider)
.static boolean
isPresent()
Returnstrue
when the Conscrypt Java classes are available.static java.security.Provider
newProvider()
Same asConscrypt.newProvider()
.
-
-
-
Method Detail
-
isPresent
public static boolean isPresent()
Returnstrue
when the Conscrypt Java classes are available. Does not imply it actually works on this platform.
-
isConscrypt
public static boolean isConscrypt(java.security.Provider provider)
Same asConscrypt.isConscrypt(Provider)
.
-
newProvider
public static java.security.Provider newProvider() throws java.lang.Throwable
Same asConscrypt.newProvider()
.- Throws:
java.lang.Throwable
-
-