Skip to content

Commit

Permalink
Review property names on BrowserCookieFacet
Browse files Browse the repository at this point in the history
No effects were observed on Make-managed files.

References:
* #74

Reported-by: Fabrizio Turchi <[email protected]>
Signed-off-by: Alex Nelson <[email protected]>
  • Loading branch information
ajnelson-nist committed Sep 25, 2024
1 parent 41f0efe commit 2bc0775
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions case_mapping/uco/observable.py
Original file line number Diff line number Diff line change
Expand Up @@ -1051,26 +1051,39 @@ def __init__(
class BrowserCookieFacet(Facet):
def __init__(
self,
name=None,
path=None,
created_time=None,
last_access_time=None,
expiration_time=None,
secure=None,
):
super().__init__()
*args: Any,
accessed_time: Optional[datetime] = None,
application: Optional[ObservableObject] = None,
cookie_domain: Optional[ObservableObject] = None,
cookie_name: Optional[str] = None,
cookie_path: Optional[str] = None,
created_time: Optional[datetime] = None,
expiration_time: Optional[datetime] = None,
is_secure: Optional[bool] = None,
**kwargs: Any,
) -> None:
super().__init__(*args, **kwargs)
self["@type"] = "uco-observable:BrowserCookieFacet"
self._node_reference_vars(
**{
"uco-observable:application": application,
"uco-observable:cookieDomain": cookie_domain,
}
)
self._str_vars(
**{"uco-observable:cookieName": name, "uco-observable:cookiePath": path}
**{
"uco-observable:cookieName": cookie_name,
"uco-observable:cookiePath": cookie_path,
}
)
self._datetime_vars(
**{
"uco-observable:observableCreatedTime": created_time,
"uco-observable:lastAccessTime": last_access_time,
"uco-observable:accessedTime": accessed_time,
"uco-observable:expirationTime": expiration_time,
}
)
self._bool_vars(**{"uco-observable:isSecure": secure})
self._bool_vars(**{"uco-observable:isSecure": is_secure})


class File(ObservableObject):
Expand Down

0 comments on commit 2bc0775

Please sign in to comment.