-
@ExperimentalApi(value = https://github.com/grpc/grpc-java/issues/10173) public final class BinderChannelCredentials extends ChannelCredentialsAdditional arbitrary arguments to establish a Android binder connection channel.
-
-
Field Summary
Fields Modifier and Type Field Description private final ComponentNamedevicePolicyAdminComponentName
-
Method Summary
Modifier and Type Method Description ComponentNamegetDevicePolicyAdminComponentName()Returns the admin component to be specified with DevicePolicyManagerbindDeviceAdminServiceAsUser API. static BinderChannelCredentialsforDefault()Creates the default BinderChannelCredentials. static BinderChannelCredentialsforDevicePolicyAdmin(ComponentName devicePolicyAdminComponentName)Creates a BinderChannelCredentials to be used with DevicePolicyManager API. ChannelCredentialswithoutBearerTokens()-
-
Method Detail
-
getDevicePolicyAdminComponentName
@Nullable() ComponentName getDevicePolicyAdminComponentName()
Returns the admin component to be specified with DevicePolicyManagerbindDeviceAdminServiceAsUser API.
-
forDefault
static BinderChannelCredentials forDefault()
Creates the default BinderChannelCredentials.
-
forDevicePolicyAdmin
static BinderChannelCredentials forDevicePolicyAdmin(ComponentName devicePolicyAdminComponentName)
Creates a BinderChannelCredentials to be used with DevicePolicyManager API.
- Parameters:
devicePolicyAdminComponentName- the admin component to be specified withDevicePolicyManager.bindDeviceAdminServiceAsUser API.
-
withoutBearerTokens
ChannelCredentials withoutBearerTokens()
-
-
-
-