java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.digest.GordianDigestSpec
All Implemented Interfaces:
GordianIdSpec

public class GordianDigestSpec extends Object implements GordianIdSpec
Digest Specification.
  • Constructor Details

    • GordianDigestSpec

      public GordianDigestSpec(GordianDigestType pDigestType)
      Constructor.
      Parameters:
      pDigestType - the digestType
    • GordianDigestSpec

      public GordianDigestSpec(GordianDigestType pDigestType, GordianLength pLength)
      Constructor.
      Parameters:
      pDigestType - the digestType
      pLength - the length
    • GordianDigestSpec

      public GordianDigestSpec(GordianDigestType pDigestType, GordianLength pLength, Boolean pXofMode)
      Constructor.
      Parameters:
      pDigestType - the digestType
      pLength - the length
      pXofMode - is this an explicit Xof?
    • GordianDigestSpec

      public GordianDigestSpec(GordianDigestType pDigestType, GordianDigestSubSpec pState, GordianLength pLength)
      Constructor.
      Parameters:
      pDigestType - the digestType
      pState - the digestState
      pLength - the length
    • GordianDigestSpec

      public GordianDigestSpec(GordianDigestType pDigestType, GordianDigestSubSpec pState, GordianLength pLength, Boolean pXofMode)
      Constructor.
      Parameters:
      pDigestType - the digestType
      pState - the digestState
      pLength - the length
      pXofMode - is this an explicit Xof?
  • Method Details

    • getDigestType

      public GordianDigestType getDigestType()
      Obtain Digest Type.
      Returns:
      the DigestType
    • getSubSpec

      public GordianDigestSubSpec getSubSpec()
      Obtain DigestSubSpec.
      Returns:
      the SubSpec
    • getDigestState

      public GordianDigestSubSpec.GordianDigestState getDigestState()
      Obtain DigestState.
      Returns:
      the State
    • getDigestLength

      public GordianLength getDigestLength()
      Obtain Digest Length.
      Returns:
      the Length
    • isXofMode

      public Boolean isXofMode()
      Is the digestSpec a Xof mode?
      Returns:
      true/false.
    • isXof

      public Boolean isXof()
      Is the digestSpec a Xof?
      Returns:
      true/false.
    • isValid

      public boolean isValid()
      Is the digestSpec valid?
      Returns:
      true/false.
    • isSha2Hybrid

      public boolean isSha2Hybrid()
      Is this a sha2 hybrid state.
      Returns:
      true/false
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object pThat)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object