本文整理了Java中org.apache.commons.httpclient.auth.AuthPolicy.registerAuthScheme()
方法的一些代码示例,展示了AuthPolicy.registerAuthScheme()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AuthPolicy.registerAuthScheme()
方法的具体详情如下:
包路径:org.apache.commons.httpclient.auth.AuthPolicy
类名称: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
内容来源于网络,如有侵权,请联系作者删除!