Package gov.nist.secauto.oscal.lib.model
Class Risk
java.lang.Object
gov.nist.secauto.oscal.lib.model.Risk
- All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Identified Risk",
description="An identified risk.",
name="risk",
moduleClass=OscalAssessmentCommonModule.class,
valueConstraints=@ValueConstraints(allowedValues=@AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values={@AllowedValue(value="false-positive",description="The risk has been confirmed to be a false positive."),@AllowedValue(value="accepted",description="The risk has been accepted. No further action will be taken."),@AllowedValue(value="risk-adjusted",description="The risk has been adjusted."),@AllowedValue(value="priority",description="A numeric value indicating the sequence in which risks should be addressed. (Lower numbers are higher priority)")}),matches=@Matches(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'priority\']/@value",typeAdapter=gov.nist.secauto.metaschema.core.datatype.adapter.IntegerAdapter.class)))
public class Risk
extends Object
implements gov.nist.secauto.metaschema.core.model.IBoundObject
An identified risk.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Describes an existing mitigating factor that may affect the overall determination of the risk, with an optional link to an implementation statement in the SSP.static class
Relates the finding to a set of referenced observations that were used to determine the finding.static class
A log of all risk-related tasks taken. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Add a newCharacterization
item to the underlying collection.boolean
Add a newLink
item to the underlying collection.boolean
Add a newRisk.MitigatingFactor
item to the underlying collection.boolean
Add a newOrigin
item to the underlying collection.boolean
Add a newProperty
item to the underlying collection.boolean
Add a newRisk.RelatedObservation
item to the underlying collection.boolean
addResponse
(Response item) Add a newResponse
item to the underlying collection.boolean
addThreatId
(ThreatId item) Add a newThreatId
item to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
getLinks()
gov.nist.secauto.metaschema.core.model.IMetaschemaData
getProps()
gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline
gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine
getTitle()
getUuid()
boolean
Remove the first matchingCharacterization
item from the underlying collection.boolean
removeLink
(Link item) Remove the first matchingLink
item from the underlying collection.boolean
Remove the first matchingRisk.MitigatingFactor
item from the underlying collection.boolean
removeOrigin
(Origin item) Remove the first matchingOrigin
item from the underlying collection.boolean
removeProp
(Property item) Remove the first matchingProperty
item from the underlying collection.boolean
Remove the first matchingRisk.RelatedObservation
item from the underlying collection.boolean
removeResponse
(Response item) Remove the first matchingResponse
item from the underlying collection.boolean
removeThreatId
(ThreatId item) Remove the first matchingThreatId
item from the underlying collection.void
setCharacterizations
(List<Characterization> value) void
setDeadline
(ZonedDateTime value) void
setDescription
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
void
void
setOrigins
(List<Origin> value) void
void
void
setRemediations
(List<Response> value) void
setRiskLog
(Risk.RiskLog value) void
setStatement
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) void
void
setThreatIds
(List<ThreatId> value) void
setTitle
(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) void
toString()
-
Constructor Details
-
Risk
public Risk() -
Risk
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaData
in interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getStatement
-
setStatement
-
getProps
-
setProps
-
addProp
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getLinks
-
setLinks
-
addLink
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getStatus
-
setStatus
-
getOrigins
-
setOrigins
-
addOrigin
Add a newOrigin
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingOrigin
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getThreatIds
-
setThreatIds
-
addThreatId
Add a newThreatId
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeThreatId
Remove the first matchingThreatId
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getCharacterizations
-
setCharacterizations
-
addCharacterization
Add a newCharacterization
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeCharacterization
Remove the first matchingCharacterization
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getMitigatingFactors
-
setMitigatingFactors
-
addMitigatingFactor
Add a newRisk.MitigatingFactor
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeMitigatingFactor
Remove the first matchingRisk.MitigatingFactor
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getDeadline
-
setDeadline
-
getRemediations
-
setRemediations
-
addResponse
Add a newResponse
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeResponse
Remove the first matchingResponse
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRiskLog
-
setRiskLog
-
getRelatedObservations
-
setRelatedObservations
-
addRelatedObservation
Add a newRisk.RelatedObservation
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRelatedObservation
Remove the first matchingRisk.RelatedObservation
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
toString
-