Package gov.nist.secauto.oscal.lib.model
Class Hash
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Hash
-
@MetaschemaField(formalName="Hash", description="A representation of a cryptographic digest generated over a resource using a specified hash algorithm.", name="hash", metaschema=OscalMetadataMetaschema.class, isCollapsible=false) @Matches(level=ERROR,target=".[@algorithm=(\'SHA-224\',\'SHA3-224\')]",pattern="^[0-9a-fA-F]{28}$") @Matches(level=ERROR,target=".[@algorithm=(\'SHA-256\',\'SHA3-256\')]",pattern="^[0-9a-fA-F]{32}$") @Matches(level=ERROR,target=".[@algorithm=(\'SHA-384\',\'SHA3-384\')]",pattern="^[0-9a-fA-F]{48}$") @Matches(level=ERROR,target=".[@algorithm=(\'SHA-512\',\'SHA3-512\')]",pattern="^[0-9a-fA-F]{64}$") public class Hash extends ObjectA representation of a cryptographic digest generated over a resource using a specified hash algorithm.
-
-
Constructor Summary
Constructors Constructor Description Hash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlgorithm()StringgetValue()voidsetAlgorithm(String value)voidsetValue(String value)StringtoString()
-