java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.keyset.GordianKeySetSpec

public class GordianKeySetSpec extends Object
KeySet Specification.
  • Field Details

    • MINIMUM_CIPHER_STEPS

      public static final Integer MINIMUM_CIPHER_STEPS
      Minimum Cipher Steps.
    • MAXIMUM_CIPHER_STEPS

      public static final Integer MAXIMUM_CIPHER_STEPS
      Maximum Cipher Steps.
    • DEFAULT_CIPHER_STEPS

      public static final Integer DEFAULT_CIPHER_STEPS
      Default Cipher Steps.
    • DEFAULT_KEYLEN

      public static final GordianLength DEFAULT_KEYLEN
      Default KeyLength.
  • Constructor Details

    • GordianKeySetSpec

      public GordianKeySetSpec()
      Constructor.
    • GordianKeySetSpec

      public GordianKeySetSpec(GordianLength pKeyLen)
      Constructor.
      Parameters:
      pKeyLen - the keyLength.
    • GordianKeySetSpec

      public GordianKeySetSpec(GordianLength pKeyLen, int pNumSteps)
      Constructor.
      Parameters:
      pKeyLen - the keyLength.
      pNumSteps - the number of cipherSteps
  • Method Details

    • isValid

      public boolean isValid()
      Is the Spec valid?
      Returns:
      true/false
    • getKeyLength

      public GordianLength getKeyLength()
      Obtain the keyLength.
      Returns:
      the keyLength
    • getCipherSteps

      public int getCipherSteps()
      Obtain the number of Cipher Steps.
      Returns:
      the # of cipher steps
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object