Class Hash

java.lang.Object
gov.nist.secauto.oscal.lib.model.Hash
All Implemented Interfaces:
gov.nist.secauto.metaschema.core.model.IBoundObject

@MetaschemaField(formalName="Hash", description="A representation of a cryptographic digest generated over a resource using a specified hash algorithm.", name="hash", moduleClass=OscalMetadataModule.class, valueConstraints=@Matches(id="oscal-check-hash-length-SHA2-3-224",level=ERROR,target=".[@algorithm=(\'SHA-224\',\'SHA3-224\')]",pattern="^[0-9a-fA-F]{56}$") @Matches(id="oscal-check-hash-length-SHA2-3-256",level=ERROR,target=".[@algorithm=(\'SHA-256\',\'SHA3-256\')]",pattern="^[0-9a-fA-F]{64}$") @Matches(id="oscal-check-hash-length-SHA2-3-384",level=ERROR,target=".[@algorithm=(\'SHA-384\',\'SHA3-384\')]",pattern="^[0-9a-fA-F]{96}$") @Matches(id="oscal-check-hash-length-SHA2-3-512",level=ERROR,target=".[@algorithm=(\'SHA-512\',\'SHA3-512\')]",pattern="^[0-9a-fA-F]{128}$")) public class Hash extends Object implements gov.nist.secauto.metaschema.core.model.IBoundObject
A representation of a cryptographic digest generated over a resource using a specified hash algorithm.
  • Constructor Details

    • Hash

      public Hash()
    • Hash

      public Hash(gov.nist.secauto.metaschema.core.model.IMetaschemaData data)
  • Method Details