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 Object
A 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 String
getAlgorithm()
String
getValue()
void
setAlgorithm(String value)
void
setValue(String value)
String
toString()
-