java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.random.GordianRandomSpec

public class GordianRandomSpec extends Object
SecureRandom Specification.
  • Constructor Details

    • GordianRandomSpec

      public GordianRandomSpec(GordianRandomType pRandomType, Object pSubSpec, boolean pResistant)
      Constructor.
      Parameters:
      pRandomType - the randomType
      pSubSpec - the subSpec
      pResistant - is the secureRandom predicationResistant?
  • Method Details

    • getRandomType

      public GordianRandomType getRandomType()
      Obtain the randomType.
      Returns:
      the randomType.
    • isValid

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

      public GordianDigestSpec getDigestSpec()
      Obtain the digestSpec.
      Returns:
      the digestSpec.
    • getSymKeySpec

      public GordianSymKeySpec getSymKeySpec()
      Obtain the symKeySpec.
      Returns:
      the symKeySpec.
    • isPredictionResistant

      public boolean isPredictionResistant()
      Obtain the predication resistance.
      Returns:
      the resistance.
    • 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