简体   繁体   English

限制对Android库的访问

[英]Restricting access to Android libarary

I created Android library that will be used as library for different project like Http library which contains functionality related to Http communication. 我创建了Android库,该库将用作其他项目的库,例如Http库,其中包含与Http通信相关的功能。 I know i need to upload the .aar(Android Archieve) file to jcentre repo so i used bintray.com and used this to create aar and upload to bintray server 我知道我需要将.aar(Android Archieve)文件上传到jcentre回购,所以我使用bintray.com并使用它来创建aar并上传到bintray服务器

The issue i am facing that how i can restrict the access of library ie library can be accessed by valid credentials. 我面临的问题是我如何限制图书馆的访问,即可以通过有效的凭证来访问图书馆。

Bintray has very sophisticated entitlements model, which allows you to control who can see and download your package. Bintray具有非常复杂的权利模型,它使您可以控制谁可以看到和下载软件包。 You can rely on Bintray's user management, use your own (or 3rd party) user management, or generate obscure (secret) URLs, optionally limiting them by expiry time or number of downloads. 您可以依靠Bintray的用户管理,使用自己的(或第三方)用户管理,或生成晦涩(秘密)的URL,可以选择通过有效期限或下载次数来限制它们。

Please see Bintray documentation for details on how to limit your package access and generate entitlement links . 请参阅Bintray文档以获取有关如何限制软件包访问权限和生成权利链接的详细信息

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM