Package org.incenp.obofoundry.sssom
Class MappingHasher
java.lang.Object
org.incenp.obofoundry.sssom.MappingHasher
Creates deterministic hash values from mappings.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MappingHasher
public MappingHasher()Creates a new instance.
-
-
Method Details
-
hash
Hashes the given mapping using the SSSOM standard hash procedure.- Parameters:
mapping
- The mapping to hash.- Returns:
- The unique hash for the mapping.
-
toZBase32
Encodes a buffer into its Z-Base32 string representation.This method implements the Z-Base32 encoding as defined in RFC 6189 ยง5.1.6 and human-oriented base32 encoding.
- Parameters:
digest
- The input buffer to encode.- Returns:
- The Z-Base32-encoded string representation of the input buffer.
-