草庐IT

BasicScheme

全部标签

java - Apache HTTP BasicScheme.authenticate 已弃用?

在ApacheHTTP组件4类org.apache.http.impl.auth.BasicScheme中,我注意到该方法:publicstaticHeaderauthenticate(finalCredentialscredentials,finalStringcharset,finalbooleanproxy)已弃用,信息如下:/***ReturnsabasicAuthorizationheadervalueforthegiven*{@linkCredentials}andcharset.**@paramcredentialsThecredentialstoencode.*@par