mirror of https://github.com/grpc/grpc-java.git
Additional changes that were added post-submission of PR 9669 for promoting out of experimental status.
This commit is contained in:
parent
dceb764385
commit
e36275e951
|
|
@ -103,7 +103,8 @@ public final class AndroidComponentAddress extends SocketAddress {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the Authority which is the package name of the target app.
|
* Returns the Authority which is the package name of the target app.
|
||||||
* See {@link android.content.ComponentName}.
|
*
|
||||||
|
* <p>See {@link android.content.ComponentName}.
|
||||||
*/
|
*/
|
||||||
public String getAuthority() {
|
public String getAuthority() {
|
||||||
return getComponent().getPackageName();
|
return getComponent().getPackageName();
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ import io.grpc.Internal;
|
||||||
public class BinderInternal {
|
public class BinderInternal {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the receiver's {@link IBinder} using {@link IBinderReceiver#set(IBinder)}.
|
* Sets the receiver's {@link IBinder} using {@link IBinderReceiver#set(IBinder)}.
|
||||||
*/
|
*/
|
||||||
static void setIBinder(IBinderReceiver receiver, IBinder binder) {
|
static void setIBinder(IBinderReceiver receiver, IBinder binder) {
|
||||||
receiver.set(binder);
|
receiver.set(binder);
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,8 @@ public final class SecurityPolicies {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a default {@link SecurityPolicy} that checks authorization based on UID.
|
* Creates a default {@link SecurityPolicy} that allows access only to callers with the same UID
|
||||||
|
* as the current process.
|
||||||
*/
|
*/
|
||||||
public static SecurityPolicy internalOnly() {
|
public static SecurityPolicy internalOnly() {
|
||||||
return new SecurityPolicy() {
|
return new SecurityPolicy() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue