matlab.net.http.authinfo类
Package:matlab.net.http
HTTP消息中的身份验证或授权信息
描述
MATLAB®当您提供凭据HTTPOptions
目的。使用authinfo
class to examine authentication, to specify authorization information, or to implement an authentication protocol, such asOAuth
,MATLAB HTTP接口不会自动处理。
这authinfo
class represents one authentication challenge returned when:
You call the
AuthenticateField.convert
响应消息的方法。You insert credentials in an
AuthorizationField
header field into a request message. When you store anauthinfo
对象在授权字段中,MATLAB在需要的地方自动将值封闭在引号中,并根据需要插入逃生字符。A server returns
auth-info
数据中的数据AuthenticationInfoField
header field.
这AuthenticateField
和AuthorizationField
convert
方法转换每个name=value
该字段中的对属性与参数名称和值对Parameters
property. Escape characters and any quotes surrounding values are removed.
有关更多信息,请参阅RFC 7235 Authentication和RFC 2617主机IMP界面(for Basic and Digest authentication).
Creation
描述
obj = matlab.net.http.AuthInfo(Scheme,
creates anparamName
,paramValue
)authinfo
包括Scheme属性和可选paramName
,paramValue
parameters. You can specify several argument pairs in any order asparamName1,paramValue1,...,paramNameN,paramValueN
。
obj = matlab.net.http.AuthInfo(
creates anparamName
,paramValue
)authinfo
object with an emptyScheme
value.
obj = matlab.net.http.AuthInfo(
复制参数和值Pstruct
)Pstruct
。
obj = matlab.net.http.AuthInfo(
creates anPstr
)authinfo
从Pstr
。