Skip to content

Commit b846ae7

Browse files
authored
Allow SecurityPolicy definitions. (grpc#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.
1 parent 8360e60 commit b846ae7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

binder/src/main/java/io/grpc/binder/SecurityPolicy.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@
3535
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/8022")
3636
public abstract class SecurityPolicy {
3737

38-
/**
39-
* Package visible constructor because we want this package to retain control over any new
40-
* policies for now.
41-
*/
42-
SecurityPolicy() {}
38+
public SecurityPolicy() {}
4339

4440
/**
4541
* Decides whether the given Android UID is authorized. (Validity is implementation dependent).

0 commit comments

Comments
 (0)