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:
markb74 2021-06-11 18:02:36 +02:00 committed by GitHub
parent 8360e60330
commit b846ae79bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -35,11 +35,7 @@ import javax.annotation.CheckReturnValue;
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/8022")
public abstract class SecurityPolicy {
/**
* Package visible constructor because we want this package to retain control over any new
* policies for now.
*/
SecurityPolicy() {}
public SecurityPolicy() {}
/**
* Decides whether the given Android UID is authorized. (Validity is implementation dependent).