Package security.whisper.javastix.common
Interface StixCustomObjectId
public interface StixCustomObjectId
-
Method Summary
Modifier and TypeMethodDescription@Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") @NotBlank(groups={javax.validation.groups.Default.class,ValidateIdOnly.class},message="Id is required") @StartsWith("x-") StringgetId()
-
Method Details
-
getId
@JsonPropertyDescription("Represents identifiers across the CTI specifications. The format consists of the name of the top-level object being identified, followed by two dashes (--), followed by a UUIDv4.") @Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") @NotBlank(groups={javax.validation.groups.Default.class,ValidateIdOnly.class}, message="Id is required") @Pattern(regexp="^[a-z][a-z-]+[a-z]--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$") @NotBlank(groups={javax.validation.groups.Default.class,ValidateIdOnly.class},message="Id is required") @StartsWith("x-") String getId()
-