Share via


ICookieAttributeHandler.Validate(ICookie, CookieOrigin) Method

Definition

Peforms cookie validation for the given attribute value.

[Android.Runtime.Register("validate", "(Lorg/apache/http/cookie/Cookie;Lorg/apache/http/cookie/CookieOrigin;)V", "GetValidate_Lorg_apache_http_cookie_Cookie_Lorg_apache_http_cookie_CookieOrigin_Handler:Org.Apache.Http.Cookies.ICookieAttributeHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Validate (Org.Apache.Http.Cookies.ICookie? cookie, Org.Apache.Http.Cookies.CookieOrigin? origin);
[<Android.Runtime.Register("validate", "(Lorg/apache/http/cookie/Cookie;Lorg/apache/http/cookie/CookieOrigin;)V", "GetValidate_Lorg_apache_http_cookie_Cookie_Lorg_apache_http_cookie_CookieOrigin_Handler:Org.Apache.Http.Cookies.ICookieAttributeHandlerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Validate : Org.Apache.Http.Cookies.ICookie * Org.Apache.Http.Cookies.CookieOrigin -> unit

Parameters

cookie
ICookie

ICookie to validate

origin
CookieOrigin

the cookie source to validate against

Attributes

Exceptions

if cookie validation fails for this attribute

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to