mirror of https://github.com/grpc/grpc-java.git
Allow SecurityPolicy definitions. (#8254)
Internally this was package visible to retain strict control over the available policies. However, that kind of strict control doesn't work with the open-source version, since users will want to create their own policies. There's at least google-specific policy internally.
This commit is contained in:
parent
8360e60330
commit
b846ae79bb
|
|
@ -35,11 +35,7 @@ import javax.annotation.CheckReturnValue;
|
||||||
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/8022")
|
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/8022")
|
||||||
public abstract class SecurityPolicy {
|
public abstract class SecurityPolicy {
|
||||||
|
|
||||||
/**
|
public SecurityPolicy() {}
|
||||||
* Package visible constructor because we want this package to retain control over any new
|
|
||||||
* policies for now.
|
|
||||||
*/
|
|
||||||
SecurityPolicy() {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decides whether the given Android UID is authorized. (Validity is implementation dependent).
|
* Decides whether the given Android UID is authorized. (Validity is implementation dependent).
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue