java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.keypair.GordianKeyPairSpec

public class GordianKeyPairSpec extends Object
Asymmetric KeyPair Specification.
  • Constructor Details

    • GordianKeyPairSpec

      public GordianKeyPairSpec(GordianKeyPairType pKeyType, Object pSubKeyType)
      Constructor.
      Parameters:
      pKeyType - the keyType
      pSubKeyType - the subKeyType
  • Method Details

    • getKeyPairType

      public GordianKeyPairType getKeyPairType()
      Obtain the keyPairType.
      Returns:
      the keyPairType.
    • getSubKeyType

      public Object getSubKeyType()
      Obtain the subKeyType.
      Returns:
      the keyType.
    • isValid

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

      public GordianRSAModulus getRSAModulus()
      Obtain the RSAmodulus.
      Returns:
      the modulus.
    • getDSAKeyType

      public GordianDSAKeyType getDSAKeyType()
      Obtain the DSA keyType.
      Returns:
      the keyType.
    • getDHGroup

      public GordianDHGroup getDHGroup()
      Obtain the DH Group.
      Returns:
      the dhGroup.
    • getElliptic

      public GordianElliptic getElliptic()
      Obtain the elliptic curve.
      Returns:
      the curve.
    • getEdwardsElliptic

      public GordianEdwardsElliptic getEdwardsElliptic()
      Obtain the elliptic curve.
      Returns:
      the curve.
    • getLMSKeySpec

      public GordianLMSKeySpec getLMSKeySpec()
      Obtain the lms keySpec.
      Returns:
      the keySpec.
    • getHSSKeySpec

      public GordianLMSKeySpec.GordianHSSKeySpec getHSSKeySpec()
      Obtain the hss keySpec.
      Returns:
      the keySpec.
    • getXMSSKeySpec

      public GordianXMSSKeySpec getXMSSKeySpec()
      Obtain the XMSS keySpec.
      Returns:
      the keySpec.
    • getXMSSDigestType

      public GordianXMSSKeySpec.GordianXMSSDigestType getXMSSDigestType()
      Obtain the XMSS digestType.
      Returns:
      the digestType.
    • getSLHDSAKeySpec

      public GordianSLHDSASpec getSLHDSAKeySpec()
      Obtain the SLHDSA keySpec.
      Returns:
      the keySpec.
    • getCMCEKeySpec

      public GordianCMCESpec getCMCEKeySpec()
      Obtain the CMCE keySpec.
      Returns:
      the keySpec.
    • getFRODOKeySpec

      public GordianFRODOSpec getFRODOKeySpec()
      Obtain the FRODO keySpec.
      Returns:
      the keySpec.
    • getSABERKeySpec

      public GordianSABERSpec getSABERKeySpec()
      Obtain the Saber keySpec.
      Returns:
      the keySpec.
    • getMLKEMKeySpec

      public GordianMLKEMSpec getMLKEMKeySpec()
      Obtain the MLKEM keySpec.
      Returns:
      the keySpec.
    • getMLDSAKeySpec

      public GordianMLDSASpec getMLDSAKeySpec()
      Obtain the MLDSA keySpec.
      Returns:
      the keySpec.
    • getHQCKeySpec

      public GordianHQCSpec getHQCKeySpec()
      Obtain the HQC keySpec.
      Returns:
      the keySpec.
    • getBIKEKeySpec

      public GordianBIKESpec getBIKEKeySpec()
      Obtain the Bike keySpec.
      Returns:
      the keySpec.
    • getNTRUKeySpec

      public GordianNTRUSpec getNTRUKeySpec()
      Obtain the NTRU keySpec.
      Returns:
      the keySpec.
    • getNTRUPrimeKeySpec

      public GordianNTRUPrimeSpec getNTRUPrimeKeySpec()
      Obtain the NTRUPRIME keySpec.
      Returns:
      the keySpec.
    • getFalconKeySpec

      public GordianFalconSpec getFalconKeySpec()
      Obtain the Falcon keySpec.
      Returns:
      the keySpec.
    • getMayoKeySpec

      public GordianMayoSpec getMayoKeySpec()
      Obtain the Mayo keySpec.
      Returns:
      the keySpec.
    • getSnovaKeySpec

      public GordianSnovaSpec getSnovaKeySpec()
      Obtain the Snova keySpec.
      Returns:
      the keySpec.
    • getPicnicKeySpec

      public GordianPicnicSpec getPicnicKeySpec()
      Obtain the Picnic keySpec.
      Returns:
      the keySpec.
    • keySpecIterator

      public Iterator<GordianKeyPairSpec> keySpecIterator()
      Obtain the composite keySpec iterator.
      Returns:
      the keySpec iterator.
    • 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
    • isStateAware

      public boolean isStateAware()
      is the use subType for signatures?
      Returns:
      true/false