org.apache.commons.httpclient.auth.AuthPolicy.registerAuthScheme()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(0.8k)|赞(0)|评价(0)|浏览(99)

本文整理了Java中org.apache.commons.httpclient.auth.AuthPolicy.registerAuthScheme()方法的一些代码示例,展示了AuthPolicy.registerAuthScheme()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthPolicy.registerAuthScheme()方法的具体详情如下:
包路径:org.apache.commons.httpclient.auth.AuthPolicy
类名称:AuthPolicy
方法名:registerAuthScheme

AuthPolicy.registerAuthScheme介绍

[英]Registers a class implementing an AuthScheme with the given identifier. If a class with the given ID already exists it will be overridden. This ID is the same one used to retrieve the AuthScheme from #getAuthScheme(String).

Please note that custom authentication preferences, if used, need to be updated accordingly for the new AuthScheme to take effect.
[中]使用给定标识符注册实现AuthScheme的类。如果具有给定ID的类已经存在,它将被重写。此ID与用于从#getAuthScheme(字符串)检索AuthScheme的ID相同。
请注意,如果使用自定义身份验证首选项,则需要相应地更新以使新的AuthScheme生效。

代码示例

Oops... Something went wrong

相关文章

微信公众号

最新文章

更多