Package dev.sigstore.rekor
Class Hash
- java.lang.Object
-
- dev.sigstore.rekor.Hash
-
@Generated("jsonschema2pojo") public class Hash extends java.lang.ObjectSpecifies the hash algorithm and value for the content
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHash.AlgorithmThe hashing function used to compute the hash value
-
Constructor Summary
Constructors Constructor Description Hash()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)Hash.AlgorithmgetAlgorithm()The hashing function used to compute the hash value (Required)java.lang.StringgetValue()The hash value for the content (Required)inthashCode()voidsetAlgorithm(Hash.Algorithm algorithm)The hashing function used to compute the hash value (Required)voidsetValue(java.lang.String value)The hash value for the content (Required)java.lang.StringtoString()HashwithAlgorithm(Hash.Algorithm algorithm)HashwithValue(java.lang.String value)
-
-
-
Method Detail
-
getAlgorithm
public Hash.Algorithm getAlgorithm()
The hashing function used to compute the hash value (Required)
-
setAlgorithm
public void setAlgorithm(Hash.Algorithm algorithm)
The hashing function used to compute the hash value (Required)
-
withAlgorithm
public Hash withAlgorithm(Hash.Algorithm algorithm)
-
getValue
public java.lang.String getValue()
The hash value for the content (Required)
-
setValue
public void setValue(java.lang.String value)
The hash value for the content (Required)
-
withValue
public Hash withValue(java.lang.String value)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
-