Interface Cookie
public interface Cookie
An object encapsulating an HTTP cookie.
The cookies are used to be able to access protected resources (such the FIDO UAF registration
endpoints).
-
Method Summary
-
Method Details
-
toString
TheString
representation of the cookie as described in section 4.1.1 of the RFC 6265. -
url
URI url()The URL of the cookie. You can provide the baseUrl of the SDK Configuration (Configuration.baseUrl()
) as cookie URL.- Returns:
- the URL
-
create
Creates a cookie.- Parameters:
url
- the request URLsetCookieHeaderValue
- the value of the Set-Cookie HTTP header containing the cookie- Returns:
- the cookie
- Throws:
IllegalArgumentException
- if the provided cookie header value is not conform with the RFC or if the cookie cannot be used in the provided URL
-