1# Copyright (c) 2017, The MITRE Corporation. All rights reserved. 2# See LICENSE.txt for complete terms. 3 4from mixbox import fields 5 6import cybox.bindings.win_semaphore_object as semaphore_binding 7from cybox.common import String 8from cybox.objects.win_handle_object import WinHandle 9from cybox.objects.semaphore_object import Semaphore 10 11 12class WinSemaphore(Semaphore): 13 _binding = semaphore_binding 14 _binding_class = semaphore_binding.WindowsSemaphoreObjectType 15 _namespace = 'http://cybox.mitre.org/objects#WinSemaphoreObject-2' 16 _XSI_NS = "WinSemaphoreObj" 17 _XSI_TYPE = "WindowsSemaphoreObjectType" 18 19 handle = fields.TypedField("Handle", WinHandle) 20 security_attributes = fields.TypedField("Security_Attributes", String) 21