Class WindowsProcessExtension
java.lang.Object
security.whisper.javastix.coo.extension.types.WindowsProcessExtension
- All Implemented Interfaces:
Serializable,StixCustomProperties,CyberObservableExtension,CyberObservableExtensionCommonProperties,WindowsProcessExtensionExt,GenericValidation,SdoDefaultValidator
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
@AllowedParents(ProcessCoo.class)
public final class WindowsProcessExtension
extends Object
implements WindowsProcessExtensionExt, Serializable
The Windows Process extension specifies a default extension for capturing properties specific to Windows processes.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWindowsProcessExtension. -
Field Summary
Fields inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
VALIDATOR -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forWindowsProcessExtension.static WindowsProcessExtensioncopyOf(WindowsProcessExtensionExt instance) Creates an immutable copy of aWindowsProcessExtensionExtvalue.booleanThis instance is equal to all instances ofWindowsProcessExtensionthat have equal attribute values.Custom Properties for STIX Objects.getType()This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.inthashCode()Computes a hash code from attributes:isAslrEnabled,isDepEnabled,priority,ownerSid,windowTitle,startupInfo,type,customProperties.toString()Prints the immutable valueWindowsProcessExtensionwith attribute values.final WindowsProcessExtensionwithCustomProperties(Map<String, ? extends Object> entries) Copy the current immutable object by replacing thecustomPropertiesmap with the specified map.final WindowsProcessExtensionwithIsAslrEnabled(boolean value) Copy the current immutable object by setting a present value for the optionalisAslrEnabledattribute.final WindowsProcessExtensionwithIsAslrEnabled(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theisAslrEnabledattribute.final WindowsProcessExtensionwithIsDepEnabled(boolean value) Copy the current immutable object by setting a present value for the optionalisDepEnabledattribute.final WindowsProcessExtensionwithIsDepEnabled(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theisDepEnabledattribute.final WindowsProcessExtensionwithOwnerSid(String value) Copy the current immutable object by setting a present value for the optionalownerSidattribute.final WindowsProcessExtensionwithOwnerSid(Optional<String> optional) Copy the current immutable object by setting an optional value for theownerSidattribute.final WindowsProcessExtensionwithPriority(String value) Copy the current immutable object by setting a present value for the optionalpriorityattribute.final WindowsProcessExtensionwithPriority(Optional<String> optional) Copy the current immutable object by setting an optional value for thepriorityattribute.final WindowsProcessExtensionwithStartupInfo(Map<String, ? extends String> entries) Copy the current immutable object by replacing thestartupInfomap with the specified map.final WindowsProcessExtensionCopy the current immutable object by setting a value for thetypeattribute.final WindowsProcessExtensionwithWindowTitle(String value) Copy the current immutable object by setting a present value for the optionalwindowTitleattribute.final WindowsProcessExtensionwithWindowTitle(Optional<String> optional) Copy the current immutable object by setting an optional value for thewindowTitleattribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface security.whisper.javastix.validation.GenericValidation
validateEntityMethods inherited from interface security.whisper.javastix.validation.SdoDefaultValidator
validate, validateOnlyId
-
Method Details
-
isAslrEnabled
@JsonPropertyDescription("Specifies whether Address Space Layout Randomization (ASLR) is enabled for the process.") public Optional<Boolean> isAslrEnabled()- Specified by:
isAslrEnabledin interfaceWindowsProcessExtensionExt- Returns:
- The value of the
isAslrEnabledattribute
-
isDepEnabled
@JsonPropertyDescription("Specifies whether Data Execution Prevention (DEP) is enabled for the process.") public Optional<Boolean> isDepEnabled()- Specified by:
isDepEnabledin interfaceWindowsProcessExtensionExt- Returns:
- The value of the
isDepEnabledattribute
-
getPriority
@JsonPropertyDescription("Specifies the current priority class of the process in Windows.") public Optional<String> getPriority()- Specified by:
getPriorityin interfaceWindowsProcessExtensionExt- Returns:
- The value of the
priorityattribute
-
getOwnerSid
@JsonPropertyDescription("Specifies the Security ID (SID) value of the owner of the process.") public Optional<String> getOwnerSid()- Specified by:
getOwnerSidin interfaceWindowsProcessExtensionExt- Returns:
- The value of the
ownerSidattribute
-
getWindowTitle
@JsonPropertyDescription("Specifies the title of the main window of the process.") public Optional<String> getWindowTitle()- Specified by:
getWindowTitlein interfaceWindowsProcessExtensionExt- Returns:
- The value of the
windowTitleattribute
-
getStartupInfo
@JsonPropertyDescription("Specifies the STARTUP_INFO struct used by the process, as a dictionary.") public com.google.common.collect.ImmutableMap<String,String> getStartupInfo()- Specified by:
getStartupInfoin interfaceWindowsProcessExtensionExt- Returns:
- The value of the
startupInfoattribute
-
getType
This property is used for generation of the dictionary during serialization, and used as the "Type" mapping value for polymorphic when deserializing.- Specified by:
getTypein interfaceCyberObservableExtensionCommonProperties
-
getCustomProperties
Custom Properties for STIX Objects. Any object that supports custom properties will have a validation of the custom property prefix (typically "x_"). If the additional property in the JSON does not meet the StartsWith condition, then the JSON will be rejected.- Specified by:
getCustomPropertiesin interfaceStixCustomProperties- Returns:
- Map of custom properties
Map<String, Object>
-
withIsAslrEnabled
Copy the current immutable object by setting a present value for the optionalisAslrEnabledattribute.- Parameters:
value- The value for isAslrEnabled- Returns:
- A modified copy of
thisobject
-
withIsAslrEnabled
Copy the current immutable object by setting an optional value for theisAslrEnabledattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isAslrEnabled- Returns:
- A modified copy of
thisobject
-
withIsDepEnabled
Copy the current immutable object by setting a present value for the optionalisDepEnabledattribute.- Parameters:
value- The value for isDepEnabled- Returns:
- A modified copy of
thisobject
-
withIsDepEnabled
Copy the current immutable object by setting an optional value for theisDepEnabledattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isDepEnabled- Returns:
- A modified copy of
thisobject
-
withPriority
Copy the current immutable object by setting a present value for the optionalpriorityattribute.- Parameters:
value- The value for priority- Returns:
- A modified copy of
thisobject
-
withPriority
Copy the current immutable object by setting an optional value for thepriorityattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for priority- Returns:
- A modified copy of
thisobject
-
withOwnerSid
Copy the current immutable object by setting a present value for the optionalownerSidattribute.- Parameters:
value- The value for ownerSid- Returns:
- A modified copy of
thisobject
-
withOwnerSid
Copy the current immutable object by setting an optional value for theownerSidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for ownerSid- Returns:
- A modified copy of
thisobject
-
withWindowTitle
Copy the current immutable object by setting a present value for the optionalwindowTitleattribute.- Parameters:
value- The value for windowTitle- Returns:
- A modified copy of
thisobject
-
withWindowTitle
Copy the current immutable object by setting an optional value for thewindowTitleattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for windowTitle- Returns:
- A modified copy of
thisobject
-
withStartupInfo
Copy the current immutable object by replacing thestartupInfomap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the startupInfo map- Returns:
- A modified copy of
thisobject
-
withType
Copy the current immutable object by setting a value for thetypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type (can benull)- Returns:
- A modified copy of the
thisobject
-
withCustomProperties
Copy the current immutable object by replacing thecustomPropertiesmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to be added to the customProperties map- Returns:
- A modified copy of
thisobject
-
equals
This instance is equal to all instances ofWindowsProcessExtensionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:isAslrEnabled,isDepEnabled,priority,ownerSid,windowTitle,startupInfo,type,customProperties. -
toString
Prints the immutable valueWindowsProcessExtensionwith attribute values. -
copyOf
Creates an immutable copy of aWindowsProcessExtensionExtvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable WindowsProcessExtension instance
-
builder
Creates a builder forWindowsProcessExtension.- Returns:
- A new WindowsProcessExtension builder
-