java.lang.Object
io.github.tonywasher.joceanus.gordianknot.api.cipher.GordianStreamKeySpec
All Implemented Interfaces:
GordianIdSpec, GordianKeySpec

public class GordianStreamKeySpec extends Object implements GordianKeySpec
GordianKnot StreamKeySpec.
  • Constructor Details

  • Method Details

    • getStreamKeyType

      public GordianStreamKeyType getStreamKeyType()
      Obtain streamKey Type.
      Returns:
      the streamKeyType
    • getKeyLength

      public GordianLength getKeyLength()
      Description copied from interface: GordianKeySpec
      Obtain the keyLength.
      Specified by:
      getKeyLength in interface GordianKeySpec
      Returns:
      the keyLength
    • getSubKeyType

      Obtain subKey Type.
      Returns:
      the subKeyType
    • isValid

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

      public boolean needsIV()
      Does this cipher need an IV?
      Returns:
      true/false
    • toString

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

      public int getIVLength()
      Obtain the IV Length.
      Returns:
      the IV length.
    • supportsAEAD

      public boolean supportsAEAD()
      Does this keySpec optionally support AEAD?
      Returns:
      true/false
    • isAEAD

      public boolean isAEAD()
      Is this keySpec an AEAD keySpec?
      Returns:
      true/false
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object