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
Nested ClassesModifier and TypeClassDescriptionstatic classDescribes 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 classRelates the finding to a set of referenced observations that were used to determine the finding.static classA log of all risk-related tasks taken. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdd a newCharacterizationitem to the underlying collection.booleanAdd a newLinkitem to the underlying collection.booleanAdd a newRisk.MitigatingFactoritem to the underlying collection.booleanAdd a newOriginitem to the underlying collection.booleanAdd a newPropertyitem to the underlying collection.booleanAdd a newRisk.RelatedObservationitem to the underlying collection.booleanaddResponse(Response item) Add a newResponseitem to the underlying collection.booleanaddThreatId(ThreatId item) Add a newThreatIditem to the underlying collection.gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegetLinks()gov.nist.secauto.metaschema.core.model.IMetaschemaDatagetProps()gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultilinegov.nist.secauto.metaschema.core.datatype.markup.MarkupLinegetTitle()getUuid()booleanRemove the first matchingCharacterizationitem from the underlying collection.booleanremoveLink(Link item) Remove the first matchingLinkitem from the underlying collection.booleanRemove the first matchingRisk.MitigatingFactoritem from the underlying collection.booleanremoveOrigin(Origin item) Remove the first matchingOriginitem from the underlying collection.booleanremoveProp(Property item) Remove the first matchingPropertyitem from the underlying collection.booleanRemove the first matchingRisk.RelatedObservationitem from the underlying collection.booleanremoveResponse(Response item) Remove the first matchingResponseitem from the underlying collection.booleanremoveThreatId(ThreatId item) Remove the first matchingThreatIditem from the underlying collection.voidsetCharacterizations(List<Characterization> value) voidsetDeadline(ZonedDateTime value) voidsetDescription(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidvoidsetOrigins(List<Origin> value) voidvoidvoidsetRemediations(List<Response> value) voidsetRiskLog(Risk.RiskLog value) voidsetStatement(gov.nist.secauto.metaschema.core.datatype.markup.MarkupMultiline value) voidvoidsetThreatIds(List<ThreatId> value) voidsetTitle(gov.nist.secauto.metaschema.core.datatype.markup.MarkupLine value) voidtoString()
-
Constructor Details
-
Risk
public Risk() -
Risk
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacegov.nist.secauto.metaschema.core.model.IBoundObject
-
getUuid
-
setUuid
-
getTitle
-
setTitle
-
getDescription
-
setDescription
-
getStatement
-
setStatement
-
getProps
-
setProps
-
addProp
Add a newPropertyitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeProp
Remove the first matchingPropertyitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getLinks
-
setLinks
-
addLink
Add a newLinkitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeLink
Remove the first matchingLinkitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getStatus
-
setStatus
-
getOrigins
-
setOrigins
-
addOrigin
Add a newOriginitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeOrigin
Remove the first matchingOriginitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getThreatIds
-
setThreatIds
-
addThreatId
Add a newThreatIditem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeThreatId
Remove the first matchingThreatIditem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getCharacterizations
-
setCharacterizations
-
addCharacterization
Add a newCharacterizationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeCharacterization
Remove the first matchingCharacterizationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getMitigatingFactors
-
setMitigatingFactors
-
addMitigatingFactor
Add a newRisk.MitigatingFactoritem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeMitigatingFactor
Remove the first matchingRisk.MitigatingFactoritem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getDeadline
-
setDeadline
-
getRemediations
-
setRemediations
-
addResponse
Add a newResponseitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeResponse
Remove the first matchingResponseitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
getRiskLog
-
setRiskLog
-
getRelatedObservations
-
setRelatedObservations
-
addRelatedObservation
Add a newRisk.RelatedObservationitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeRelatedObservation
Remove the first matchingRisk.RelatedObservationitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-