Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Identity ¶
type Identity struct {
baseobject.CommonObjectProperties
properties.NameProperty
properties.DescriptionProperty
IdentityClass string `json:"identity_class,omitempty"`
Sectors []string `json:"sectors,omitempty"`
ContactInformation string `json:"contact_information,omitempty"`
}
Identity - This type implements the STIX 2 Identity SDO and defines all of the properties methods needed to create and work with the STIX Identity SDO. All of the methods not defined local to this type are inherited from the individual properties.
The following information comes directly from the STIX 2 specification documents.
Identities can represent actual individuals, organizations, or groups (e.g., ACME, Inc.) as well as classes of individuals, organizations, or groups (e.g., the finance sector).
The Identity SDO can capture basic identifying information, contact information, and the sectors that the Identity belongs to. Identity is used in STIX to represent, among other things, targets of attacks, information sources, object creators, and threat actor identities.
func New ¶
func New() *Identity
New - This function will create a new STIX Identity object and return it as a pointer.
func (*Identity) AddSector ¶
AddSector - This method takes in a string value that represents a STIX sector from the vocab industry-sector-ov and adds it to the identity object.
func (*Identity) SetContactInformation ¶
SetContactInformation - This method takes in a string value representing contact information as a text string and updates the contact information property.
func (*Identity) SetIdentityClass ¶
SetIdentityClass - This method takes in a string value representing a STIX identity class from the vocab identity-class-ov and updates the identity class property.