identity

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 2 Imported by: 1

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

func (o *Identity) AddSector(s string) error

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

func (o *Identity) SetContactInformation(s string) error

SetContactInformation - This method takes in a string value representing contact information as a text string and updates the contact information property.

func (*Identity) SetIdentityClass

func (o *Identity) SetIdentityClass(s string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL