Class MessageDigestHasher
java.lang.Object
org.tribuo.hash.Hasher
org.tribuo.hash.MessageDigestHasher
- All Implemented Interfaces:
com.oracle.labs.mlrg.olcut.config.Configurable,com.oracle.labs.mlrg.olcut.provenance.Provenancable<com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenance>,Serializable
Hashes Strings using the supplied MessageDigest type.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.tribuo.hash.Hasher
MIN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Supplier<MessageDigest> getDigestSupplier(String hashType) Creates a supplier for the specified hash type.com.oracle.labs.mlrg.olcut.provenance.ConfiguredObjectProvenanceHashes the supplied input using the hashing function.voidUsed by the OLCUT configuration system, and should not be called by external code.voidThe salt is transient, it must be set **to the same value as it was trained with** after theModelis deserialized.toString()Methods inherited from class org.tribuo.hash.Hasher
validateSalt
-
Field Details
-
utf8Charset
-
-
Constructor Details
-
MessageDigestHasher
-
-
Method Details
-
postConfig
Used by the OLCUT configuration system, and should not be called by external code.- Throws:
com.oracle.labs.mlrg.olcut.config.PropertyException
-
hash
-
setSalt
-
toString
-
getProvenance
-
getDigestSupplier
Creates a supplier for the specified hash type.- Parameters:
hashType- The hash type, used to specify the MessageDigest implementation.- Returns:
- A supplier for the MessageDigest.
-