Class GordianKeySetSpec
java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.keyset.GordianKeySetSpec
KeySet Specification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntegerDefault Cipher Steps.static final GordianLengthDefault KeyLength.static final IntegerMaximum Cipher Steps.static final IntegerMinimum Cipher Steps. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.GordianKeySetSpec(GordianLength pKeyLen) Constructor.GordianKeySetSpec(GordianLength pKeyLen, int pNumSteps) Constructor. -
Method Summary
-
Field Details
-
MINIMUM_CIPHER_STEPS
Minimum Cipher Steps. -
MAXIMUM_CIPHER_STEPS
Maximum Cipher Steps. -
DEFAULT_CIPHER_STEPS
Default Cipher Steps. -
DEFAULT_KEYLEN
Default KeyLength.
-
-
Constructor Details
-
GordianKeySetSpec
public GordianKeySetSpec()Constructor. -
GordianKeySetSpec
Constructor.- Parameters:
pKeyLen- the keyLength.
-
GordianKeySetSpec
Constructor.- Parameters:
pKeyLen- the keyLength.pNumSteps- the number of cipherSteps
-
-
Method Details
-
isValid
public boolean isValid()Is the Spec valid?- Returns:
- true/false
-
getKeyLength
Obtain the keyLength.- Returns:
- the keyLength
-
getCipherSteps
public int getCipherSteps()Obtain the number of Cipher Steps.- Returns:
- the # of cipher steps
-
equals
-
hashCode
public int hashCode() -
toString
-