Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究用于 WebDav 访问的 Sardine Java 库。在用户指南页面上有授权部分,但仅使用凭证类型的授权。
我尝试访问的 WebDav 服务器支持Bearer Token授权。
Bearer Token
是否可以将 Sardine 配置为Authorization在请求中包含标头,以便我可以使用令牌而不是用户名/密码?
Authorization
是的,我使用了这个构造函数public SardineImpl(String bearerAuth),它工作得很好
public SardineImpl(String bearerAuth)